projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8dc01d
)
mount: strip multiple trailing slashes, not just one
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 28 Feb 2011 10:09:49 +0000
(11:09 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 28 Feb 2011 10:09:49 +0000
(11:09 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index 0127f1958a8db15e491b62456708b2ecf749444e..989e5d1a8fd92dfea077572aa6e9c9785c8dd9b8 100644
(file)
--- a/
util-linux/mount.c
+++ b/
util-linux/mount.c
@@
-565,7
+565,7
@@
static int mount_it_now(struct mntent *mp, long vfsflags, char *filteropts)
// Remove trailing / (if any) from directory we mounted on
i = strlen(mp->mnt_dir) - 1;
while (i > 0 && mp->mnt_dir[i] == '/')
- mp->mnt_dir[i] = '\0';
+ mp->mnt_dir[i
--
] = '\0';
// Convert to canonical pathnames as needed
mp->mnt_dir = bb_simplify_path(mp->mnt_dir);