delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin-developers/> |
List-Post: | <mailto:cygwin-developers AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-developers-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin-developers AT sourceware DOT cygnus DOT com |
Message-ID: | <779F20BCCE5AD31186A50008C75D997917170F@SILLDN_MAIL1> |
From: | "Fifer, Eric" <EFifer AT sanwaint DOT com> |
To: | "'Chris Faylor'" <cgf AT cygnus DOT com> |
Cc: | "'cygwin-developers AT sourceware DOT cygnus DOT com'" |
<cygwin-developers AT sourceware DOT cygnus DOT com> | |
Subject: | RE: lstat() and implied .exe extension |
Date: | Thu, 13 Apr 2000 13:30:40 +0100 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
Chris, Your fix goes a little too far. Now lstat() doesn't seem to respect SYMLINK_NOFOLLOW and behaves just like stat(). You may need to patch more than just path_conv::path_conv. When I was playing with this yesterday I noticed that the meaning of sym_buf passed to symlink_check_one is overloaded, in the case of a regular file it just contains the extension that you want to append, and in the case of a symlink it contains the link (but you really just want the extension). Then, when you imply a .exe onto a symlink, you have to lie and say it's not a link otherwise ls will try to do a readlink() that will fail. I would have provided a patch, but I thought the whole feature was dubious. Eric
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |