commit | ea62077b850076c4d7dc3cf78ebd1888928c6ddf | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Oct 14 02:23:43 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Oct 14 02:23:43 2006 +0000 |
tree | 37b7584ae40b99edb5583fbc4392b62ffdadf278 | |
parent | 88ca06769028e442bf873b270c176ca0e9f021f8 [diff] [blame] |
add open_read_close() and similar stuff
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index f433936..1df144f 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c
@@ -39,10 +39,8 @@ if (!delete) { strcat(path, "/dev"); - fd = open(path, O_RDONLY); - len = read(fd, temp + 1, 64); + len = open_read_close(path, temp + 1, 64); *temp++ = 0; - close(fd); if (len < 1) return; }