This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] cygcheck: follow symbolic links
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 16 Feb 2006 17:06:37 +0100
- Subject: Re: [PATCH] cygcheck: follow symbolic links
- References: <Pine.GSO.4.63.0602131341020.17217@access1.cims.nyu.edu>
- Reply-to: cygwin-patches at cygwin dot com
On Feb 13 13:44, Igor Peshansky wrote:
> As promised in <http://cygwin.com/ml/cygwin/2006-02/msg00071.html>, the
> attached patch teaches cygcheck to follow symlinks when looking for
> executables, and also flags scripts. Sorry, had legal delays in sending
> this (as you can see, I had this working since 02/03). Comments welcome.
> Igor
A few comments.
- Most of your patch should go into path.cc so it can be reused, for
instance in strace.
- Your readlink lacks checking the file attributes. Shortcut symlinks
require a R/O attribute to be valid, old-style symlinks require the
SYSTEM attribute.
- Couldn't you just reuse the readlink implementation in ../cygwin/path.cc
as is, to avoid having to different implementations?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat