[BusyBox] [PATCH] Minor bug in start_stop_daemon.c
Glenn McGrath
bug1 at iinet.net.au
Thu Jan 22 09:09:55 UTC 2004
On Wed, 21 Jan 2004 16:11:30 +0000
Stewart Brodie <stewart at metahusky.net> wrote:
>
> The code which detects whether or not you have used exactly one of -K
> or -S options is broken: it fails to detect both options being used.
> This is probably a fault caused by changes to the option parsing.
> With the scheme in place right now, "start" will be 0 or 1 and "stop"
> will be 0 or *2* (not 1 as the code assumes). The following patch
> fixes the problem by inverting the two values before comparison - it
> may be worth investigating whether the same fault affects the
> debianutils package.
Ive fixed it a different way, bb_getopt_ulflags can check it.
Glenn
More information about the busybox
mailing list