umount: ignore -c
authorShawn Landden <slandden@gmail.com>
Mon, 8 Jan 2018 12:31:58 +0000 (13:31 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 Jan 2018 12:31:58 +0000 (13:31 +0100)
"-c, --no-canonicalize: Do not canonicalize paths."

As busybox doesn't canonicalize paths in the first place it is safe to ignore
this option.

See https://github.com/systemd/systemd/issues/7786

Signed-off-by: Shawn Landden <slandden@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/umount.c

index a6405dfcc73cfde74fd30202a5d59d6a0b8e921e..b45cd8a6b5de59f9ffb104cc4edf6532c3556a0c 100644 (file)
@@ -81,8 +81,8 @@ static struct mntent *getmntent_r(FILE* stream, struct mntent* result,
 }
 #endif
 
-/* ignored: -v -t -i */
-#define OPTION_STRING           "fldnra" "vt:i"
+/* ignored: -c -v -t -i */
+#define OPTION_STRING           "fldnra" "cvt:i"
 #define OPT_FORCE               (1 << 0) // Same as MNT_FORCE
 #define OPT_LAZY                (1 << 1) // Same as MNT_DETACH
 #define OPT_FREELOOP            (1 << 2)