delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Tue, 28 Feb 2012 10:35:35 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Links: +S attribute removed: recover? |
Message-ID: | <20120228093535.GC23052@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <4F4C92DA DOT 6040907 AT bonhard DOT uklinux DOT net> |
MIME-Version: | 1.0 |
In-Reply-To: | <4F4C92DA.6040907@bonhard.uklinux.net> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Feb 28 08:39, Fergus wrote: > Links of the style > $ ls -al /bin/awk > lrwxrwxrwx 1 fergus hdd 8 Feb 28 07:27 /bin/awk -> gawk.exe* > are located on the drive as readonly +R .lnk files or +S system files. > Suppose through a keyboard slip outside Cygwin all the file > attribites on a Cygwin filesystem are lost. Then +R attributes can > be recovered through the DOS command > attrib +R *.lnk /s > but can anybody tell me whether (and if so, how) it is possible to > recover links created as +S files? These symlinks are simple text files which start with the magic string "!<symlink>" or, in case of AF_LOCAL sockets, with "!<socket >" or, in case you're using Interix as well, with "IntxLNK". I'm afraid you have to scan all text files and see if they start with one of the aforementioned strings and if so, set the S bit using the Win32 attrib tool. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |