diff options
author | Ron Yorston <rmy@pobox.com> | 2012-04-23 10:57:02 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-04-23 10:57:02 +0100 |
commit | 2903c15333636ae51db14cab009533bac68c8a30 (patch) | |
tree | 11a49598f98c505c021202564348c5639e2fb0b1 /util-linux/mdev.c | |
parent | 5fc2c035953f71992197f6025918a8fe79ade1d3 (diff) | |
parent | f5234398ef3010b68468cafe3e2ea89b2bb08a17 (diff) | |
download | busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.tar.gz busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.tar.bz2 busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.zip |
Merge commit '1_20_0' into merge
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 67de52d06..0a34122b4 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -164,7 +164,10 @@ struct globals { | |||
164 | struct rule cur_rule; | 164 | struct rule cur_rule; |
165 | } FIX_ALIASING; | 165 | } FIX_ALIASING; |
166 | #define G (*(struct globals*)&bb_common_bufsiz1) | 166 | #define G (*(struct globals*)&bb_common_bufsiz1) |
167 | #define INIT_G() do { } while (0) | 167 | #define INIT_G() do { \ |
168 | IF_NOT_FEATURE_MDEV_CONF(G.cur_rule.maj = -1;) \ | ||
169 | IF_NOT_FEATURE_MDEV_CONF(G.cur_rule.mode = 0660;) \ | ||
170 | } while (0) | ||
168 | 171 | ||
169 | 172 | ||
170 | /* Prevent infinite loops in /sys symlinks */ | 173 | /* Prevent infinite loops in /sys symlinks */ |
@@ -477,9 +480,8 @@ static void make_device(char *path, int delete) | |||
477 | } | 480 | } |
478 | } | 481 | } |
479 | /* else: it's final implicit "match-all" rule */ | 482 | /* else: it's final implicit "match-all" rule */ |
480 | #endif | ||
481 | |||
482 | rule_matches: | 483 | rule_matches: |
484 | #endif | ||
483 | dbg("rule matched"); | 485 | dbg("rule matched"); |
484 | 486 | ||
485 | /* Build alias name */ | 487 | /* Build alias name */ |