From 138378640fd1a6207a51eca384de683393312372 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 20 Sep 2022 12:43:36 -0500 Subject: [PATCH] Collate tests. --- toys/lsb/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toys/lsb/mount.c b/toys/lsb/mount.c index 9317ed8b..109f6e19 100644 --- a/toys/lsb/mount.c +++ b/toys/lsb/mount.c @@ -175,10 +175,10 @@ static void mount_filesystem(char *dev, char *dir, char *type, // Autodetect bind mount or filesystem type - if (type && !strcmp(type, "auto")) type = 0; + if (type && (!strcmp(type, "auto") || !strcmp(type, "none"))) type = 0; if (flags & MS_MOVE) { if (type) error_exit("--move with -t"); - } else if (!type || !strcmp(type, "none")) { + } else if (!type) { struct stat stdev, stdir; // file on file or dir on dir is a --bind mount. -- 2.39.2