aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-06-22 15:06:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-06-22 15:06:27 +0200
commita396ade9f83f05a65b0a6df3dcbdeb8cfef0c696 (patch)
tree9504158cc6641e1cc7b8624d3163fc79ec17be8b
parentc9a13116a4497f4597ad5db6eb3cac9680fd6fc4 (diff)
downloadbusybox-w32-a396ade9f83f05a65b0a6df3dcbdeb8cfef0c696.tar.gz
busybox-w32-a396ade9f83f05a65b0a6df3dcbdeb8cfef0c696.tar.bz2
busybox-w32-a396ade9f83f05a65b0a6df3dcbdeb8cfef0c696.zip
mount: undo recent breakage when mount flags were made unsigned
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 220a4e67c..95dee18ec 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -467,7 +467,7 @@ static unsigned long parse_mount_options(char *options, char **unrecognized)
467 for (i = 0; i < ARRAY_SIZE(mount_options); i++) { 467 for (i = 0; i < ARRAY_SIZE(mount_options); i++) {
468 if (strcasecmp(option_str, options) == 0) { 468 if (strcasecmp(option_str, options) == 0) {
469 unsigned long fl = mount_options[i]; 469 unsigned long fl = mount_options[i];
470 if (fl < 0) 470 if ((long)fl < 0)
471 flags &= fl; 471 flags &= fl;
472 else 472 else
473 flags |= fl; 473 flags |= fl;