aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-08-03 00:14:02 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-08-03 00:14:02 +0000
commit3c6bc4553ea4d75f124941564f466c824740e80c (patch)
treeb8a572b7a2ccc68c5edad3a9691fbb017d7a39ae /coreutils/df.c
parent40304269cee11f7e26277eee21fa43593a0244cc (diff)
downloadbusybox-w32-3c6bc4553ea4d75f124941564f466c824740e80c.tar.gz
busybox-w32-3c6bc4553ea4d75f124941564f466c824740e80c.tar.bz2
busybox-w32-3c6bc4553ea4d75f124941564f466c824740e80c.zip
Tito, farmatito at tiscali dot it writes:
Hi to all, This patch is useful for: 1) remove an unused var from extern char *find_real_root_device_name(const char* name) changing it to extern char *find_real_root_device_name(void). 2) fixes include/libbb.h, coreutils/df.c, util-linux/mount.c and util-linux/umount.c accordingly. 3) fixes a bug, really a false positive, in find_real_root_device_name() that happens if in the /dev directory exists a link named root (/dev/root) that should be skipped but is not. This affects applets like df that display wrong results git-svn-id: svn://busybox.net/trunk/busybox@9056 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index cff69fe1a..ba2e7ccc9 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -130,7 +130,7 @@ extern int df_main(int argc, char **argv)
130 } else if (strcmp(device, "/dev/root") == 0) { 130 } else if (strcmp(device, "/dev/root") == 0) {
131 /* Adjusts device to be the real root device, 131 /* Adjusts device to be the real root device,
132 * or leaves device alone if it can't find it */ 132 * or leaves device alone if it can't find it */
133 if ((device = find_real_root_device_name(device)) == NULL) { 133 if ((device = find_real_root_device_name()) == NULL) {
134 goto SET_ERROR; 134 goto SET_ERROR;
135 } 135 }
136 } 136 }