symbolic links on Samba-mounted drive

Steve Kelem steve.kelem@elementcxi.com
Thu Dec 23 18:33:00 GMT 2004


I'm running the latest Cygwin on WinXP SP2. I have coreutils-5.2.1-3 
installed.

I have a Linux directory mounted via Samba.

If I do the following in the mounted Linux directory, the links don't 
come out right.

% mkdir directory
% echo text > file
% ls -l
drwxr-xr-x 1 skelem None 0 Dec 23 10:27 directory/
-rwxr-xr-x 1 skelem None 5 Dec 23 10:27 file*
% ln -s directory dir
% ln -s file f
% ls -l
-rwxr-xr-x 1 skelem None 98 Dec 23 10:28 dir.lnk*
drwxr-xr-x 1 skelem None 0 Dec 23 10:27 directory/
-rwxr-xr-x 1 skelem None 88 Dec 23 10:28 f.lnk*
-rwxr-xr-x 1 skelem None 5 Dec 23 10:27 file*
% cat f
cat: f: No such file or directory
% ls -l dir
ls: dir: No such file or directory
% cat f.lnk
L ☺¶☻ A F♀ ☺ ♦ fi
le♦ file
%

The reason I'm bringing this up, is that I'm trying to run a script that 
runs on Linux. That script is creating the symbolic links.
(Hard links don't work on directories. A hard link on a file does work.)

Steve Kelem





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list