aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-14 02:23:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-14 02:23:43 +0000
commitea62077b850076c4d7dc3cf78ebd1888928c6ddf (patch)
tree37b7584ae40b99edb5583fbc4392b62ffdadf278 /miscutils/makedevs.c
parent88ca06769028e442bf873b270c176ca0e9f021f8 (diff)
downloadbusybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.tar.gz
busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.tar.bz2
busybox-w32-ea62077b850076c4d7dc3cf78ebd1888928c6ddf.zip
add open_read_close() and similar stuff
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index e4658010c..6ff5cc223 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -187,7 +187,7 @@ int makedevs_main(int argc, char **argv)
187 sprintf(full_name_inc, "%s%d", full_name, i); 187 sprintf(full_name_inc, "%s%d", full_name, i);
188 rdev = (major << 8) + minor + (i * increment - start); 188 rdev = (major << 8) + minor + (i * increment - start);
189 if (mknod(full_name_inc, mode, rdev) == -1) { 189 if (mknod(full_name_inc, mode, rdev) == -1) {
190 bb_perror_msg("line %d: could not create node %s", linenum, full_name_inc); 190 bb_perror_msg("line %d: cannot create node %s", linenum, full_name_inc);
191 ret = EXIT_FAILURE; 191 ret = EXIT_FAILURE;
192 } 192 }
193 else if (chown(full_name_inc, uid, gid) == -1) { 193 else if (chown(full_name_inc, uid, gid) == -1) {
@@ -203,7 +203,7 @@ int makedevs_main(int argc, char **argv)
203 } else { 203 } else {
204 rdev = (major << 8) + minor; 204 rdev = (major << 8) + minor;
205 if (mknod(full_name, mode, rdev) == -1) { 205 if (mknod(full_name, mode, rdev) == -1) {
206 bb_perror_msg("line %d: could not create node %s", linenum, full_name); 206 bb_perror_msg("line %d: cannot create node %s", linenum, full_name);
207 ret = EXIT_FAILURE; 207 ret = EXIT_FAILURE;
208 } 208 }
209 else if (chown(full_name, uid, gid) == -1) { 209 else if (chown(full_name, uid, gid) == -1) {