diff options
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index b6ca00409..da4930f27 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -138,7 +138,7 @@ static void make_device(char *path, int delete) | |||
138 | // Command to run | 138 | // Command to run |
139 | char *s = "@$*", *s2; | 139 | char *s = "@$*", *s2; |
140 | if (!(s2 = strchr(s, *pos++))) { | 140 | if (!(s2 = strchr(s, *pos++))) { |
141 | // Force error | 141 | // Force error |
142 | field = 1; | 142 | field = 1; |
143 | break; | 143 | break; |
144 | } | 144 | } |
@@ -171,13 +171,13 @@ static void make_device(char *path, int delete) | |||
171 | 171 | ||
172 | if (major == bbg.root_major && minor == bbg.root_minor) | 172 | if (major == bbg.root_major && minor == bbg.root_minor) |
173 | symlink(device_name, "root"); | 173 | symlink(device_name, "root"); |
174 | 174 | ||
175 | if (ENABLE_FEATURE_MDEV_CONF) chown(device_name, uid, gid); | 175 | if (ENABLE_FEATURE_MDEV_CONF) chown(device_name, uid, gid); |
176 | } | 176 | } |
177 | if (command) { | 177 | if (command) { |
178 | int rc; | 178 | int rc; |
179 | char *s; | 179 | char *s; |
180 | 180 | ||
181 | s=xasprintf("MDEV=%s",device_name); | 181 | s=xasprintf("MDEV=%s",device_name); |
182 | putenv(s); | 182 | putenv(s); |
183 | rc = system(command); | 183 | rc = system(command); |