-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello Thomas,
Sorry for the long time without a reply. I just forgot about it and stumbled upon it right now. I'm using strongSwan 5.2.0, "ipsec stroke -- loglevel any" doesn't work and returns status 2 and "/usr/bin/ipsec: unknown option `--' (perhaps command name was omitted?)" on stdout. "ipsec stroke loglevel any _1" works just fine. I don't understand why _1 works. Also, I don't work with the getopt library and have no idea how it works internally. always write my own input validation code. Mit freundlichen Grüßen/Regards, Noel Kuntze GPG Key ID: 0x63EC6658 Fingerprint: 23CA BB60 2146 05E7 7278 6592 3839 298F 63EC 6658 Am 23.09.2014 um 00:27 schrieb Thomas Egerer: > Hi Noel, > On 09/22/2014 11:18 AM, Noel Kuntze wrote: > > Hello, > > > Can anyone elaborate on why "ipsec stroke loglevel any -1" gives me > > "invalid option", but it works with the individual subsystems? > I guess it's been added prior to 5.2.0 with git-commit > dcb1684 stroke: Add --daemon option > > When Tobias added aforementioned option he changed the code > to use of getopt_long. Judging from your posts to the list, I > guess, I don't have to explain what this tries to do with > your '-1' option ;) > > Try > > ipsec stroke -- loglevel any > > for a change, and you should be fine. > This does however not explain the behavior you describe about > the modification of the loglevel for individial subsystems. I > don't see how this would work, unless I'm totally wrong with > my explanation. Are you sure about this? If so, and the > resolution above does not solve your problem, please reply and > post at least the strongswan version you are using. > > Cheers, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUPEGLAAoJEDg5KY9j7GZYh0sP/je2coCNGonmHGR8j0iMAye5 eHBwuJ15FVEI+NUkFF4ZM715gFBosaR30FBhghwZmJVf1nN3hiX+f6PtuEtUu2B6 SX09/ir6FG31913OXEOUDEb2XNwHsxVoN5IboN36s9PJGn2hxPjo7CqDVvg5IJrq Skaf/C/R/hH+PQxWuDAySk9wWofxng64qHZJsoWg8NeEh4HArSRdJ7+mNbc1AEdE xuahXk1GxyVdHWqxf9jAlkBs4GkK/o3enn8tK7oFO1fisQjbNHBZeExPmUjz+sTx pvBs85OBrkKiAY0L72i4z4a5oI1oefnhXVM3NhxO18WOY5gIHYVrfOXNiwEROMSg UEoui+Ggh6dmWKoRhANJJtFCOFgHCF9euq0pkZ1bXJ5/n+Mh5VQDWrgP+xSgPEEb TOzQ81aN2f95A89WgmeyKrclF1lsHC5U5EFMOyNVzyzctdJTH/91L1zm0aSO9fIx LEDfVMPzKgR1mblqBHHqgWbef4peOmYMpVVZT4kWXDqObaPlZQqFuyN+zb22+pxO 2N7KESKyCwrHhtQV0X/nfS3RLbVxMpNMyqw6YjFXl/QexNcq00LWtoqI8xkdLFcA +GAcjKCxjljGHZS8SvUPvlprvLiA4ZR7u47nxOZ4uXwAt16xeZ71cFPWpu59zXcg o2I9Xi62MFi7ZtO1pWkl =NZ7M -----END PGP SIGNATURE----- _______________________________________________ Users mailing list [email protected] https://lists.strongswan.org/mailman/listinfo/users
