projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*: remove some uses of argc
[oweals/busybox.git]
/
e2fsprogs
/
old_e2fsprogs
/
blkid
/
read.c
diff --git
a/e2fsprogs/old_e2fsprogs/blkid/read.c
b/e2fsprogs/old_e2fsprogs/blkid/read.c
index 67bc8ee442e1326fd3b7e6718b3cb502d3f34560..f795a5d1457d5d4a757b340b06cd174781d0e9f8 100644
(file)
--- a/
e2fsprogs/old_e2fsprogs/blkid/read.c
+++ b/
e2fsprogs/old_e2fsprogs/blkid/read.c
@@
-374,9
+374,7
@@
void blkid_read_cache(blkid_cache cache)
DBG(DEBUG_CACHE, printf("reading cache file %s\n",
cache->bic_filename));
- file = fdopen(fd, "r");
- if (!file)
- goto errout;
+ file = xfdopen_for_read(fd);
while (fgets(buf, sizeof(buf), file)) {
blkid_dev dev;