Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 53c1252c20e56b7af45b2cabb2de59bb > files > 3

util-linux-2.38.1-1.mga9.src.rpm

--- util-linux-2.27/login-utils/chfn.c.orig	2015-10-07 16:46:52.383201800 +0100
+++ util-linux-2.27/login-utils/chfn.c	2015-10-07 16:48:03.790821177 +0100
@@ -143,7 +143,7 @@
 		{ NULL, 0, NULL, 0 },
 	};
 
-	while ((c = getopt_long(argc, argv, "f:r:p:h:o:uv", long_options,
+	while ((c = getopt_long(argc, argv, "f:r:w:p:h:o:uv", long_options,
 				&index)) != -1) {
 		switch (c) {
 		case 'f':
@@ -152,12 +152,14 @@
 			ctl->newf.full_name = optarg;
 			status += check_gecos_string(_("Name"), optarg);
 			break;
+		case 'r':
 		case 'o':
 			if (!ctl->allow_room)
 				errx(EXIT_FAILURE, _("login.defs forbids setting %s"), _("Office"));
 			ctl->newf.office = optarg;
 			status += check_gecos_string(_("Office"), optarg);
 			break;
+		case 'w':
 		case 'p':
 			if (!ctl->allow_work)
 				errx(EXIT_FAILURE, _("login.defs forbids setting %s"), _("Office Phone"));