mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Woops, last change wasn't done quite right...fixed.
This commit is contained in:
parent
32e68582d1
commit
792016e7a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6444
@ -262,7 +262,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
|
||||
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
|
||||
|
||||
if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) {
|
||||
if ((sb.st_mode & S_IFDIR) == 0) {
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
warnx("%s: Not a directory", mntpath);
|
||||
return (1);
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
|
||||
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
|
||||
|
||||
if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) {
|
||||
if ((sb.st_mode & S_IFDIR) == 0) {
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
warnx("%s: Not a directory", mntpath);
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user