diff options
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -131,6 +131,15 @@ extern int get_kernel_revision(void) | |||
131 | } | 131 | } |
132 | #endif /* BB_INIT */ | 132 | #endif /* BB_INIT */ |
133 | 133 | ||
134 | |||
135 | |||
136 | #if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME | ||
137 | #include <sys/syscall.h> | ||
138 | _syscall1(int, sysinfo, struct sysinfo *, info); | ||
139 | #endif /* BB_INIT */ | ||
140 | |||
141 | |||
142 | |||
134 | #if defined (BB_CP_MV) || defined (BB_DU) | 143 | #if defined (BB_CP_MV) || defined (BB_DU) |
135 | 144 | ||
136 | #define HASH_SIZE 311 /* Should be prime */ | 145 | #define HASH_SIZE 311 /* Should be prime */ |
@@ -1189,6 +1198,9 @@ extern struct mntent *findMountPoint(const char *name, const char *table) | |||
1189 | return 0; | 1198 | return 0; |
1190 | 1199 | ||
1191 | while ((mountEntry = getmntent(mountTable)) != 0) { | 1200 | while ((mountEntry = getmntent(mountTable)) != 0) { |
1201 | if (strcmp(mountEntry->mnt_fsname, "none") == 0) { | ||
1202 | continue; | ||
1203 | } | ||
1192 | if (strcmp(name, mountEntry->mnt_dir) == 0 | 1204 | if (strcmp(name, mountEntry->mnt_dir) == 0 |
1193 | || strcmp(name, mountEntry->mnt_fsname) == 0) /* String match. */ | 1205 | || strcmp(name, mountEntry->mnt_fsname) == 0) /* String match. */ |
1194 | break; | 1206 | break; |