delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/31/03:34:19

From: john AT exmachina DOT net (John Mullee)
Subject: Re: link cmd
31 Oct 1998 03:34:19 -0800 :
Message-ID: <3.0.3.16.19981030161600.185f0c86.cygnus.gnu-win32@exmachina.net>
References: <5060200020916743000002L032*@MHS>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

At 17:00 1998-10-28 +0000, you wrote:
>I'm using B19 gnuwin32 on a NT machine. When i try to link from a remote file
>to a local file as in
>ln -s //l/build/toto/foo.c /build/foo.c    the link works
>but if i edit the file i only have
>!<symlink>//l/build/toto/foo.c instead of the file. How can i have the
contents
>of the file without copying the file ?

I think the problem comes from Cygnus\B19\src\winsup\syscalls.cc;
stat seems to fail, or for some reason or other permission is denied...

 bash-2.01$ ln -dvfi  /var/john ./jm
 create hard link ./jm to /var/john
 ln: cannot create hard link `./jm' to `/var/john': Permission denied

 bash-2.01$ mkpasswd -l
 Administrator::500:513:::/bin/sh

 bash-2.01$ chown Administrator .
 chown: Administrator: invalid user


Hm.

bash-2.01$ echo something > there
bash-2.01$ ln -s there here
bash-2.01$ cat here
something
bash-2.01$ notepad here
  (shows  !<symlink>there  )

John.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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