View | Details | Raw Unified | Return to bug 58483
Collapse All | Expand All

(-)mount.c (-2 / +4 lines)
Lines 136-141 Link Here
136
	pid_t pid;
136
	pid_t pid;
137
	int all, ch, i, init_flags, mntsize, rval, have_fstab;
137
	int all, ch, i, init_flags, mntsize, rval, have_fstab;
138
	char *cp, *ep, *options;
138
	char *cp, *ep, *options;
139
	char mntnamereal[MAXPATHLEN + 1];
139
140
140
	all = init_flags = 0;
141
	all = init_flags = 0;
141
	options = NULL;
142
	options = NULL;
Lines 272-279 Link Here
272
			break;
273
			break;
273
		}
274
		}
274
		rmslashes(*argv, *argv);
275
		rmslashes(*argv, *argv);
275
		if ((fs = getfsfile(*argv)) == NULL &&
276
		if (realpath(*argv,mntnamereal) == NULL ||
276
		    (fs = getfsspec(*argv)) == NULL)
277
		    ((fs = getfsfile(mntnamereal)) == NULL &&
278
		     (fs = getfsspec(mntnamereal)) == NULL))
277
			errx(1, "%s: unknown special file or file system",
279
			errx(1, "%s: unknown special file or file system",
278
			    *argv);
280
			    *argv);
279
		if (BADTYPE(fs->fs_type))
281
		if (BADTYPE(fs->fs_type))

Return to bug 58483