Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "'Chris Faylor'" Cc: "'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) Content-Type: text/plain; charset="iso-8859-1" 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