mount: undo recent breakage when mount flags were made unsigned
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c9a13116a4
commit
a396ade9f8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue