From 961d69f79973d60811c172caee6ce661f5d4cd31 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 6 Jan 2014 09:02:36 +0100 Subject: losetup, mount: remove --pass-fd at all The option is unsupported since v2.23, let's cleanup man pages and code to remove it at all. Reported-by: "Dale R. Worley" Signed-off-by: Karel Zak --- sys-utils/mount.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys-utils/mount.c') diff --git a/sys-utils/mount.c b/sys-utils/mount.c index ed814ca49..d2d1fdac8 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -803,7 +803,6 @@ int main(int argc, char **argv) { "rw", 0, 0, 'w' }, { "options", 1, 0, 'o' }, { "test-opts", 1, 0, 'O' }, - { "pass-fd", 1, 0, 'p' }, { "types", 1, 0, 't' }, { "uuid", 1, 0, 'U' }, { "label", 1, 0, 'L'}, @@ -846,12 +845,12 @@ int main(int argc, char **argv) mnt_context_set_tables_errcb(cxt, table_parser_errcb); - while ((c = getopt_long(argc, argv, "aBcfFhilL:Mno:O:p:rRsU:vVwt:T:", + while ((c = getopt_long(argc, argv, "aBcfFhilL:Mno:O:rRsU:vVwt:T:", longopts, NULL)) != -1) { /* only few options are allowed for non-root users */ if (mnt_context_is_restricted(cxt) && - !strchr("hlLUVvprist", c) && + !strchr("hlLUVvrist", c) && c != MOUNT_OPT_TARGET && c != MOUNT_OPT_SOURCE) exit_non_root(option_to_longopt(c, longopts)); @@ -901,9 +900,6 @@ int main(int argc, char **argv) if (mnt_context_set_options_pattern(cxt, optarg)) err(MOUNT_EX_SYSERR, _("failed to set options pattern")); break; - case 'p': - warnx(_("--pass-fd is no longer supported")); - break; case 'L': xasprintf(&srcbuf, "LABEL=\"%s\"", optarg); mnt_context_disable_swapmatch(cxt, 1); -- cgit v1.2.3-55-g7522