[PATCH] uuidd: Add missing break to option case statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---

Fixed this in e2fsprogs too so here you go!

diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c
index b250b7a..453287c 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;

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux