summaryrefslogtreecommitdiffstats
path: root/misc-utils/uuidd.c
diff options
context:
space:
mode:
authorEric Sandeen2011-09-17 02:53:50 +0200
committerKarel Zak2011-09-27 15:08:34 +0200
commitb747e88698b236f8f16421d7f7e3610629226227 (patch)
treef0525012c50660fe69b036ff06a08845eac88bf1 /misc-utils/uuidd.c
parentlibmount: fix use of logical '&&' with constant operand (diff)
downloadkernel-qcow2-util-linux-b747e88698b236f8f16421d7f7e3610629226227.tar.gz
kernel-qcow2-util-linux-b747e88698b236f8f16421d7f7e3610629226227.tar.xz
kernel-qcow2-util-linux-b747e88698b236f8f16421d7f7e3610629226227.zip
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 <sandeen@redhat.com>
Diffstat (limited to 'misc-utils/uuidd.c')
-rw-r--r--misc-utils/uuidd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c
index b250b7a34..453287c5b 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;