]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
uuidd: Add missing break to option case statement
authorEric Sandeen <sandeen@redhat.com>
Sat, 17 Sep 2011 00:53:50 +0000 (19:53 -0500)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Oct 2011 12:22:27 +0000 (14:22 +0200)
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>
misc-utils/uuidd.c

index b250b7a3446963a5b6d3f66d04226a09467d30a9..453287c5bd0301a28b38120b8df7e320dd5ac86e 100644 (file)
@@ -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;