aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 2eadee88b..0814a5256 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -2078,8 +2078,8 @@ static int singlemount(struct mntent *mp, int ignore_busy)
2078 && (!mp->mnt_type || is_prefixed_with(mp->mnt_type, "nfs")) 2078 && (!mp->mnt_type || is_prefixed_with(mp->mnt_type, "nfs"))
2079 ) { 2079 ) {
2080 char *colon = strchr(mp->mnt_fsname, ':'); 2080 char *colon = strchr(mp->mnt_fsname, ':');
2081 if (colon /* looks like "hostname:..." */ 2081 if (colon // looks like "hostname:..."
2082 && strchrnul(mp->mnt_fsname, '/') > colon /* "hostname:" has no slashes */ 2082 && strchrnul(mp->mnt_fsname, '/') > colon // "hostname:" has no slashes
2083 ) { 2083 ) {
2084 if (!mp->mnt_type) 2084 if (!mp->mnt_type)
2085 mp->mnt_type = (char*)"nfs"; 2085 mp->mnt_type = (char*)"nfs";
@@ -2125,7 +2125,7 @@ static int singlemount(struct mntent *mp, int ignore_busy)
2125 bb_simple_error_msg(bb_msg_perm_denied_are_you_root); 2125 bb_simple_error_msg(bb_msg_perm_denied_are_you_root);
2126 else 2126 else
2127 bb_simple_perror_msg("can't setup loop device"); 2127 bb_simple_perror_msg("can't setup loop device");
2128 return errno; 2128 return loopfd; // was "return errno", but it can be 0 here
2129 } 2129 }
2130 2130
2131 // Autodetect bind mounts 2131 // Autodetect bind mounts