From: Denys Vlasenko Date: Fri, 22 Jun 2012 13:06:27 +0000 (+0200) Subject: mount: undo recent breakage when mount flags were made unsigned X-Git-Tag: 1_21_0~121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a396ade9f83f05a65b0a6df3dcbdeb8cfef0c696;p=oweals%2Fbusybox.git mount: undo recent breakage when mount flags were made unsigned Signed-off-by: Denys Vlasenko --- 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) for (i = 0; i < ARRAY_SIZE(mount_options); i++) { if (strcasecmp(option_str, options) == 0) { unsigned long fl = mount_options[i]; - if (fl < 0) + if ((long)fl < 0) flags &= fl; else flags |= fl;