diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-05 19:29:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-05 19:29:59 +0000 |
commit | 89bc256c9480a137a2286b5b16ff4207e35659e5 (patch) | |
tree | ce9511f09c0da7277cf44f38197b8548b9c79aa0 | |
parent | f7cf2f7ef98077c59e4da4bc25de38c22174ac9d (diff) | |
download | busybox-w32-89bc256c9480a137a2286b5b16ff4207e35659e5.tar.gz busybox-w32-89bc256c9480a137a2286b5b16ff4207e35659e5.tar.bz2 busybox-w32-89bc256c9480a137a2286b5b16ff4207e35659e5.zip |
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
will be removing this stuff from /proc/mounts real soon now I am assured.
-Erik
-rw-r--r-- | coreutils/df.c | 3 | ||||
-rw-r--r-- | df.c | 3 | ||||
-rw-r--r-- | mount.c | 8 | ||||
-rw-r--r-- | util-linux/mount.c | 8 | ||||
-rw-r--r-- | utility.c | 3 |
5 files changed, 0 insertions, 25 deletions
diff --git a/coreutils/df.c b/coreutils/df.c index 8d457ec37..ba3227f30 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -103,9 +103,6 @@ extern int df_main(int argc, char **argv) | |||
103 | } | 103 | } |
104 | 104 | ||
105 | while ((mountEntry = getmntent(mountTable))) { | 105 | while ((mountEntry = getmntent(mountTable))) { |
106 | if (strcmp(mountEntry->mnt_fsname, "none") == 0) { | ||
107 | continue; | ||
108 | } | ||
109 | df(mountEntry->mnt_fsname, mountEntry->mnt_dir); | 106 | df(mountEntry->mnt_fsname, mountEntry->mnt_dir); |
110 | } | 107 | } |
111 | endmntent(mountTable); | 108 | endmntent(mountTable); |
@@ -103,9 +103,6 @@ extern int df_main(int argc, char **argv) | |||
103 | } | 103 | } |
104 | 104 | ||
105 | while ((mountEntry = getmntent(mountTable))) { | 105 | while ((mountEntry = getmntent(mountTable))) { |
106 | if (strcmp(mountEntry->mnt_fsname, "none") == 0) { | ||
107 | continue; | ||
108 | } | ||
109 | df(mountEntry->mnt_fsname, mountEntry->mnt_dir); | 106 | df(mountEntry->mnt_fsname, mountEntry->mnt_dir); |
110 | } | 107 | } |
111 | endmntent(mountTable); | 108 | endmntent(mountTable); |
@@ -358,10 +358,6 @@ extern int mount_main(int argc, char **argv) | |||
358 | fatalError( "\nDEVMTAB_GET_MOUNTS: %s\n", strerror (errno)); | 358 | fatalError( "\nDEVMTAB_GET_MOUNTS: %s\n", strerror (errno)); |
359 | 359 | ||
360 | for( i = 0 ; i < numfilesystems ; i++) { | 360 | for( i = 0 ; i < numfilesystems ; i++) { |
361 | /* klude around Linux 2.4.x stupidity */ | ||
362 | if (strcmp(mntentlist[i].mnt_fsname, "none") == 0) { | ||
363 | continue; | ||
364 | } | ||
365 | fprintf( stdout, "%s %s %s %s %d %d\n", mntentlist[i].mnt_fsname, | 361 | fprintf( stdout, "%s %s %s %s %d %d\n", mntentlist[i].mnt_fsname, |
366 | mntentlist[i].mnt_dir, mntentlist[i].mnt_type, | 362 | mntentlist[i].mnt_dir, mntentlist[i].mnt_type, |
367 | mntentlist[i].mnt_opts, mntentlist[i].mnt_freq, | 363 | mntentlist[i].mnt_opts, mntentlist[i].mnt_freq, |
@@ -384,10 +380,6 @@ extern int mount_main(int argc, char **argv) | |||
384 | 380 | ||
385 | while ((m = getmntent(mountTable)) != 0) { | 381 | while ((m = getmntent(mountTable)) != 0) { |
386 | char *blockDevice = m->mnt_fsname; | 382 | char *blockDevice = m->mnt_fsname; |
387 | /* klude around Linux 2.4.x stupidity */ | ||
388 | if (strcmp(blockDevice, "none") == 0) { | ||
389 | continue; | ||
390 | } | ||
391 | if (strcmp(blockDevice, "/dev/root") == 0) { | 383 | if (strcmp(blockDevice, "/dev/root") == 0) { |
392 | find_real_root_device_name( blockDevice); | 384 | find_real_root_device_name( blockDevice); |
393 | } | 385 | } |
diff --git a/util-linux/mount.c b/util-linux/mount.c index 292be0c43..76f048b1c 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -358,10 +358,6 @@ extern int mount_main(int argc, char **argv) | |||
358 | fatalError( "\nDEVMTAB_GET_MOUNTS: %s\n", strerror (errno)); | 358 | fatalError( "\nDEVMTAB_GET_MOUNTS: %s\n", strerror (errno)); |
359 | 359 | ||
360 | for( i = 0 ; i < numfilesystems ; i++) { | 360 | for( i = 0 ; i < numfilesystems ; i++) { |
361 | /* klude around Linux 2.4.x stupidity */ | ||
362 | if (strcmp(mntentlist[i].mnt_fsname, "none") == 0) { | ||
363 | continue; | ||
364 | } | ||
365 | fprintf( stdout, "%s %s %s %s %d %d\n", mntentlist[i].mnt_fsname, | 361 | fprintf( stdout, "%s %s %s %s %d %d\n", mntentlist[i].mnt_fsname, |
366 | mntentlist[i].mnt_dir, mntentlist[i].mnt_type, | 362 | mntentlist[i].mnt_dir, mntentlist[i].mnt_type, |
367 | mntentlist[i].mnt_opts, mntentlist[i].mnt_freq, | 363 | mntentlist[i].mnt_opts, mntentlist[i].mnt_freq, |
@@ -384,10 +380,6 @@ extern int mount_main(int argc, char **argv) | |||
384 | 380 | ||
385 | while ((m = getmntent(mountTable)) != 0) { | 381 | while ((m = getmntent(mountTable)) != 0) { |
386 | char *blockDevice = m->mnt_fsname; | 382 | char *blockDevice = m->mnt_fsname; |
387 | /* klude around Linux 2.4.x stupidity */ | ||
388 | if (strcmp(blockDevice, "none") == 0) { | ||
389 | continue; | ||
390 | } | ||
391 | if (strcmp(blockDevice, "/dev/root") == 0) { | 383 | if (strcmp(blockDevice, "/dev/root") == 0) { |
392 | find_real_root_device_name( blockDevice); | 384 | find_real_root_device_name( blockDevice); |
393 | } | 385 | } |
@@ -1199,9 +1199,6 @@ extern struct mntent *findMountPoint(const char *name, const char *table) | |||
1199 | return 0; | 1199 | return 0; |
1200 | 1200 | ||
1201 | while ((mountEntry = getmntent(mountTable)) != 0) { | 1201 | while ((mountEntry = getmntent(mountTable)) != 0) { |
1202 | if (strcmp(mountEntry->mnt_fsname, "none") == 0) { | ||
1203 | continue; | ||
1204 | } | ||
1205 | if (strcmp(name, mountEntry->mnt_dir) == 0 | 1202 | if (strcmp(name, mountEntry->mnt_dir) == 0 |
1206 | || strcmp(name, mountEntry->mnt_fsname) == 0) /* String match. */ | 1203 | || strcmp(name, mountEntry->mnt_fsname) == 0) /* String match. */ |
1207 | break; | 1204 | break; |