From: Eric Sandeen Date: Sat, 17 Sep 2011 00:53:50 +0000 (-0500) Subject: uuidd: Add missing break to option case statement X-Git-Tag: v2.21-rc1~385 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b747e88698b236f8f16421d7f7e3610629226227;p=thirdparty%2Futil-linux.git uuidd: Add missing break to option case statement Specifying the "-n" option to uuidd would incorrectly fall through to the "-p" case, and assign that number to the pidfile_path. Signed-off-by: Eric Sandeen --- diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index b250b7a344..453287c5bd 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -478,6 +478,7 @@ int main(int argc, char **argv) fprintf(stderr, _("Bad number: %s\n"), optarg); return EXIT_FAILURE; } + break; case 'p': pidfile_path = optarg; drop_privs = 1;