diff options
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/blkid/cache.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/devname.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/probe.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/resolve.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/save.c | 2 | ||||
-rw-r--r-- | e2fsprogs/e2fsck.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/e2fsprogs/blkid/cache.c b/e2fsprogs/blkid/cache.c index 88cc326..0dd1b62 100644 --- a/e2fsprogs/blkid/cache.c +++ b/e2fsprogs/blkid/cache.c @@ -111,7 +111,7 @@ int main(int argc, char** argv) argv[1] ? argv[1] : BLKID_CACHE_FILE); exit(1); } - if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) { + if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) { fprintf(stderr, "%s: error creating cache (%d)\n", argv[0], ret); exit(1); diff --git a/e2fsprogs/blkid/devname.c b/e2fsprogs/blkid/devname.c index b323021..b5db29e 100644 --- a/e2fsprogs/blkid/devname.c +++ b/e2fsprogs/blkid/devname.c @@ -355,7 +355,7 @@ int main(int argc, char **argv) "Probe all devices and exit\n", argv[0]); exit(1); } - if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) { + if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) { fprintf(stderr, "%s: error creating cache (%d)\n", argv[0], ret); exit(1); diff --git a/e2fsprogs/blkid/probe.c b/e2fsprogs/blkid/probe.c index 9008dc8..1c30460 100644 --- a/e2fsprogs/blkid/probe.c +++ b/e2fsprogs/blkid/probe.c @@ -680,7 +680,7 @@ int main(int argc, char **argv) "Probe a single device to determine type\n", argv[0]); exit(1); } - if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) { + if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) { fprintf(stderr, "%s: error creating cache (%d)\n", argv[0], ret); exit(1); diff --git a/e2fsprogs/blkid/resolve.c b/e2fsprogs/blkid/resolve.c index 3dca74f..625782d 100644 --- a/e2fsprogs/blkid/resolve.c +++ b/e2fsprogs/blkid/resolve.c @@ -121,7 +121,7 @@ int main(int argc, char **argv) argv[0], argv[0]); exit(1); } - if (blkid_get_cache(&cache, "/dev/null") < 0) { + if (blkid_get_cache(&cache, bb_dev_null) < 0) { fprintf(stderr, "Couldn't get blkid cache\n"); exit(1); } diff --git a/e2fsprogs/blkid/save.c b/e2fsprogs/blkid/save.c index 1830e45..3fba245 100644 --- a/e2fsprogs/blkid/save.c +++ b/e2fsprogs/blkid/save.c @@ -166,7 +166,7 @@ int main(int argc, char **argv) exit(1); } - if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) { + if ((ret = blkid_get_cache(&cache, bb_dev_null)) != 0) { fprintf(stderr, "%s: error creating cache (%d)\n", argv[0], ret); exit(1); diff --git a/e2fsprogs/e2fsck.c b/e2fsprogs/e2fsck.c index fc7e740..42ee8ab 100644 --- a/e2fsprogs/e2fsck.c +++ b/e2fsprogs/e2fsck.c @@ -15086,7 +15086,7 @@ static void reserve_stdio_fds(void) int fd; while (1) { - fd = open("/dev/null", O_RDWR); + fd = open(bb_dev_null, O_RDWR); if (fd > 2) break; if (fd < 0) { |