| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| X-Authority-Analysis: | v=1.0 c=1 a=CCpqsmhAAAAA:8 a=xe8BsctaAAAA:8 a=9SAq6sPHNK_Zfnniw_8A:9 a=2dkjhuEm0DqlG6quSQMA:7 a=nb0FbeJ81IclwAvtCn_-QsAjnJEA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 |
| Message-ID: | <47CFEE38.5040905@byu.net> |
| Date: | Thu, 06 Mar 2008 06:14:32 -0700 |
| From: | Eric Blake <ebb9 AT byu DOT net> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: bug with touch t/ |
| References: | <loom DOT 20080304T214047-23 AT post DOT gmane DOT org> <20080305183640 DOT GI18407 AT calimero DOT vinschen DOT de> |
| In-Reply-To: | <20080305183640.GI18407@calimero.vinschen.de> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Corinna Vinschen on 3/5/2008 11:36 AM:
|> $ : > t/
|> t/: Is a directory.
|>
|
| Should be fixed in the new 1.5.25-11 test release.
Yes, in 1.5.25-11, it is _correctly_ failing with ENOENT. But in CVS, it
looks like you changed it to return EISDIR instead?
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=src&r1=1.313&r2=1.314
POSIX requires ENOENT, not EISDIR (if neither 't' nor 't/' exist, and you
are performing file name resolution for open("t/",O_RDONLY|O_CREAT), then
the resolution should be performed as if it were
open("t/.",O_RDONLY|O_CREAT) and fail with ENOENT since t is not a
directory). EISDIR is reserved for cases like open("t/",O_WRONLY) when
"t/" already exists.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHz+4384KuGfSFAYARAtlLAKCIVIZQca059CICB6DIMg+AIr5XEQCfUGvM
41aotxz7nFUBCcakRNiMvYI=
=Xqmd
-----END PGP SIGNATURE-----
--
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 |