From: Eric Sandeen Date: Fri, 16 Sep 2011 20:49:24 +0000 (-0500) Subject: uuidd: Add missing break to option case statement X-Git-Tag: v1.42-WIP-0925~31 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6a1dfb3b62eda5e7eb671b9c879546addb616684;p=tools%2Fe2fsprogs.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 Signed-off-by: Theodore Ts'o --- diff --git a/misc/uuidd.c b/misc/uuidd.c index 89bff72..912773a 100644 --- a/misc/uuidd.c +++ b/misc/uuidd.c @@ -472,6 +472,7 @@ int main(int argc, char **argv) fprintf(stderr, _("Bad number: %s\n"), optarg); exit(1); } + break; case 'p': pidfile_path = optarg; drop_privs = 1;