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 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 "!" or, in case of AF_LOCAL sockets, with "!" 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