Lines 297-302
getmntfile(const char *file)
Link Here
|
297 |
struct mntent *ent = NULL; |
297 |
struct mntent *ent = NULL; |
298 |
FILE *fp; |
298 |
FILE *fp; |
299 |
|
299 |
|
|
|
300 |
if ((access("/etc/fstab", F_OK)) == -1) |
301 |
return NULL; |
302 |
|
300 |
fp = setmntent("/etc/fstab", "r"); |
303 |
fp = setmntent("/etc/fstab", "r"); |
301 |
while ((ent = getmntent(fp))) |
304 |
while ((ent = getmntent(fp))) |
302 |
if (strcmp(file, ent->mnt_dir) == 0) |
305 |
if (strcmp(file, ent->mnt_dir) == 0) |
303 |
- |
|
|