* path.h: Create new input path flag PATH_NEEDDIR.

* path.cc (path::check): Detect trailing slash before converting to windows
path.  Tell symlink_info::check to check for directory if one is found.
(symlink_info::check): Set errno when path is not a directory if pflags &
PATH_NEEDDIR.
This commit is contained in:
Christopher Faylor
2000-09-19 03:22:45 +00:00
parent 45b80bb4ce
commit 6e604fb15d
3 changed files with 31 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ enum path_types
PATH_BINARY = MOUNT_BINARY,
PATH_EXEC = MOUNT_EXEC,
PATH_CYGWIN_EXEC = MOUNT_CYGWIN_EXEC,
PATH_NEEDDIR = 0x20000000,
PATH_SOCKET = 0x40000000,
PATH_HASACLS = 0x80000000
};