busybox: ignore fstab option "nofail"
[opendreambox.git] / meta-opendreambox / recipes-core / busybox / busybox-1.20.2 / 0002-mount-undo-recent-breakage-when-mount-flags-were-mad.patch
1 From 4d91be6d2d8c19404d33464f5354e34c6437f4ef Mon Sep 17 00:00:00 2001
2 From: Denys Vlasenko <vda.linux@googlemail.com>
3 Date: Fri, 22 Jun 2012 15:06:27 +0200
4 Subject: [PATCH 2/9] mount: undo recent breakage when mount flags were made
5  unsigned
6
7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
8 ---
9  util-linux/mount.c |    2 +-
10  1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/util-linux/mount.c b/util-linux/mount.c
13 index 220a4e6..95dee18 100644
14 --- a/util-linux/mount.c
15 +++ b/util-linux/mount.c
16 @@ -467,7 +467,7 @@ static unsigned long parse_mount_options(char *options, char **unrecognized)
17                 for (i = 0; i < ARRAY_SIZE(mount_options); i++) {
18                         if (strcasecmp(option_str, options) == 0) {
19                                 unsigned long fl = mount_options[i];
20 -                               if (fl < 0)
21 +                               if ((long)fl < 0)
22                                         flags &= fl;
23                                 else
24                                         flags |= fl;
25 -- 
26 1.7.10.4
27