delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/09/16/02:18:42

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Symlinks are broken?
16 Sep 1998 02:18:42 -0700 :
Message-ID: <01BDE172.4E2D60C0.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Sergey Okhapkin wrote:
> E:\$>bash
> bash-2.01$ cat >aaa
> weqweqweqwe
> bash-2.01$ ln -s aaa bbb
> bash-2.01$ cat bbb
> !<symlink>aaa bash-2.01$
> 

--- /winsup/fhandler.cc Tue Sep 15 10:59:02 1998
+++ fhandler.cc Wed Sep 16 11:58:32 1998
@@ -1031,7 +1031,7 @@
   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));
+  path_conv real_path (path, !(flags & O_NOSYMLINK));

   if (real_path.error &&
       (flags & O_NOSYMLINK || real_path.error != ENOENT || !(flags & O_CREAT)))


-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019