Lines 275-280
Link Here
|
275 |
struct mntent *ent = NULL; |
275 |
struct mntent *ent = NULL; |
276 |
FILE *fp; |
276 |
FILE *fp; |
277 |
|
277 |
|
|
|
278 |
if ((access("/etc/fstab", F_OK)) == -1) |
279 |
return NULL; |
280 |
|
278 |
fp = setmntent("/etc/fstab", "r"); |
281 |
fp = setmntent("/etc/fstab", "r"); |
279 |
while ((ent = getmntent(fp))) |
282 |
while ((ent = getmntent(fp))) |
280 |
if (strcmp(file, ent->mnt_dir) == 0) |
283 |
if (strcmp(file, ent->mnt_dir) == 0) |