delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [ANNOUNCEMENT] Updated: cygwin-1.5.19-1 |
Mail-Copies-To: | never |
Reply-To: | sds AT gnu DOT org |
X-Attribution: | Sam |
X-Disclaimer: | You should not expect anyone to agree with me. |
From: | Sam Steingold <sds AT gnu DOT org> |
In-Reply-To: | <Pine.CYG.4.58.0601181403430.468@PC1163-8460-XP.flightsafety.com> (Brian Ford's message of "Wed, 18 Jan 2006 14:06:19 -0600") |
References: | <announce DOT 20060117033619 DOT GA12055 AT coe DOT casa DOT cgf DOT cx> <u1wz5h2ed DOT fsf AT gnu DOT org> <20060118181027 DOT GA17787 AT calimero DOT vinschen DOT de> <umzhtfhky DOT fsf AT gnu DOT org> <Pine DOT CYG DOT 4 DOT 58 DOT 0601181403430 DOT 468 AT PC1163-8460-XP DOT flightsafety DOT com> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Date: | Wed, 18 Jan 2006 15:30:43 -0500 |
Message-ID: | <uirshffd8.fsf@gnu.org> |
User-Agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
> * Brian Ford <Oevna DOT Sbeq AT syvtugfnsrgl DOT pbz> [2006-01-18 14:06:19 -0600]: > > On Wed, 18 Jan 2006, Sam Steingold wrote: > >> here is a simple test case: >> >> int main (int argc, char *argv[]) { >> char executable[MAXPATHLEN]; >> realpath(argv[0],executable); >> if (open(executable,O_RDONLY|O_BINARY,0644) < 0) return 1; >> else return 0; >> } >> >> it worked (returned 0) before and it works on Linux. >> it does not work now. > > Looks very similar to: > > http://www.cygwin.com/ml/cygwin/2004-09/msg00867.html not only cygwin "drops extension" from argv[0] (as your bug report says), it also fails to restore it in realpath(). the point here is that the return value of realpath() cannot fail to open due to ENOENT - as it does on cygwin. -- Sam Steingold (http://www.podval.org/~sds) running w2k http://www.openvotingconsortium.org http://www.mideasttruth.com http://www.camera.org http://ffii.org http://truepeace.org Winners never quit; quitters never win; idiots neither win nor quit. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |