delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/01/16:40:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:to:date:subject:mime-version
:content-transfer-encoding:from:message-id; q=dns; s=default; b=
Wa03Kv8vZZliMTEyazAYp40849K6nXTLhDMJ1VxWxkbuBe03WI93Rpa86g3dx6/j
42cptRSHVjkGOCUoqZ2sPdLpdTgifFJxjpIcQd4V99Aqdij5VuctAk2CzNCSBW1D
ZAE2ijKf21mKmSPvBZZWXugxTCRgG+N0PI+L8Dc0lfw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:to:date:subject:mime-version
:content-transfer-encoding:from:message-id; s=default; bh=DN6R2X
H64qao2QLY7pgzkZ/+fsg=; b=IKxoLtcaziPkIK6nIwGF8rqr2O4+oKaccg9w09
P9mYUQZpUeCkN3JS50rMrPvNZVu8Sx+umBwx5BxvYu5ULNYslr8VlD3geZvWmTPm
7EO9tSkqUHXb7mC5hrgc+4yU+wEGRfVdgsVKJPbt4Ds8iOT+0/1aStYY0Gz/mred
v3NI0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:upc, H*M:upc, H*c:iso-8859-15, H*r:10026
X-HELO: mailout.ish.de
X-Abuse-ID: hremUFXL0y-8240 AT umkbw DOT customer
Anomaly-Results: submit.unitybox.de; rate=0%
Dubio-Filter: Adamant Filter v2016.04.1 submit.unitybox.de 3rh7Zc19Mbz7tDM
To: cygwin AT cygwin DOT com
Date: Fri, 01 Jul 2016 22:40:07 +0200
Subject: symlinks to unlinked but open files should work
MIME-Version: 1.0
From: "Helmut Karlowski" <helmut DOT karlowski AT ish DOT de>
Message-ID: <op.yjxvo5gyofd6j1@frascati.upc.de>
User-Agent: Opera Mail/12.17 (Win32)
X-IsSubscribed: yes

Cygwin seems to look up a symlink wrong:

When the target-file is unlinked while it is used by a process the file  
still exists and the symlink should point to that file.

Test:

ln -s out1 lout1
exec >lout1
rm out1
[[ -w /dev/fd/1 ]] || echo /dev/fd/1 not writable 1>&2
rm lout1

Only on cygwin it prints the message.

-Helmut

--

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

- Raw text -


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