delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/23/13:33:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <41CB0F39.6000806@elementcxi.com>
Date: Thu, 23 Dec 2004 10:32:25 -0800
From: Steve Kelem <steve DOT kelem AT elementcxi DOT com>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
MIME-Version: 1.0
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
CC: Endric Schubert <endric AT endric DOT com>
Subject: symbolic links on Samba-mounted drive
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id iBNIXHui006879

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/


- Raw text -


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