* path.cc (symlink_check_one): Recognize symlink settings from the mount table.
* path.h: Make PATH_SYMLINK an alias for MOUNT_SYMLINK. * syscalls.cc (stat_worker): Use extension search mechanism in path_conv to look for .exe rather than trying to special case it here. * mount.h: Make MOUNT_SYMLINK a real option.
This commit is contained in:
@ -2156,7 +2156,7 @@ symlink_check_one (const char *in_path, char *buf, int buflen, DWORD& fileattr,
|
||||
|
||||
/* A symlink will have the `system' file attribute. */
|
||||
/* Only files can be symlinks (which can be symlinks to directories). */
|
||||
if (!SYMLINKATTR (fileattr))
|
||||
if (!(*pflags & PATH_SYMLINK) && !SYMLINKATTR (fileattr))
|
||||
goto file_not_symlink;
|
||||
|
||||
/* Check the file's extended attributes, if it has any. */
|
||||
|
Reference in New Issue
Block a user