* fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when

resolving real_path.
        * path.cc (symlink): Ditto for win32_topath.
This commit is contained in:
Corinna Vinschen
2001-02-22 11:06:25 +00:00
parent 3a8fc0e4f1
commit 87e6b0981f
3 changed files with 10 additions and 2 deletions

View File

@ -1199,11 +1199,13 @@ fhandler_disk_file::fhandler_disk_file (const char *name) :
int
fhandler_disk_file::open (const char *path, int flags, mode_t mode)
{
extern suffix_info inner_suffixes[];
syscall_printf ("(%s, %p)", path, flags);
/* O_NOSYMLINK is an internal flag for implementing lstat, nothing more. */
path_conv real_path (path, (flags & O_NOSYMLINK) ?
PC_SYM_NOFOLLOW : PC_SYM_FOLLOW);
PC_SYM_NOFOLLOW : PC_SYM_FOLLOW, inner_suffixes);
if (real_path.error &&
(flags & O_NOSYMLINK || real_path.error != ENOENT || !(flags & O_CREAT)))