mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
1. If checking for directory-ness, check "dir" and "dir/" to catch
the case where we have a symlink pointing at a dir. 2. Restore stomped character before returning in make_hierarchy()
This commit is contained in:
parent
95452c412e
commit
ff6f5bfb91
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ isdir(char *fname)
|
|||
|
||||
if (lstat(fname, &sb) != FAIL && S_ISDIR(sb.st_mode))
|
||||
return TRUE;
|
||||
else if (lstat(strconcat(fname, "/"), &sb) != FAIL && S_ISDIR(sb.st_mode))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue