Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 478226 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/rc/mountinfo.c (-1 / +3 lines)
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
- 

Return to bug 478226