Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Message-ID: <026901c20a46$245b0ad0$6132bc3e@BABEL> From: "Conrad Scott" To: Subject: stat(2) wierdness Date: Sun, 2 Jun 2002 15:59:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 This started out looking at the /proc filesystem, in particular XEmacs's handling of the file /proc/registry/HKEY_CLASSES_ROOT/* but I got distracted. Basically: the handling of filenames consisting of exactly one of these win32 reserved characters, * ? " < >, is broken in the current CVS cygwin. This has changed between 1.3.10-1 and the current release. (nb this is in the standard filesystem, not the /proc filesystem.) For example, stat(2) succeeds for filenames containing of a single * ? " < or >, claiming that they are directories. (It correctly rejects filenames of a single | and I'm ignoring \ and : since I'm unclear what should happen with these anyhow.) These were all rejected in 1.3.10-1. This gives lovely wierdness if you try something like: $ cp /etc/passwd '*' cp: cannot create regular file `*/passwd': No such file or directory After this little diversion, back to XEmacs wierdness. // Conrad