This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cvs


I'm using Cygwin 1.1.6 (full install from scratch using the setup tool) on
Windows 2000 SP1 and am attempting to check out the gnome sources from
:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome. Everything was working well
until it got to the gdm folder, at which point it stopped with the error
unable to rename "gdm/config/.new.:0" to ":0". This brought up an
interesting problem because bash (ls -al) could not see any files in the
config directory even though Windows Explorer clearly showed a file named
".new.". Even funnier is that neither bash, Windows Exploroer nor a windows
command prompt could delete this file; and neither bash nor Windows Explorer
could remove the directory (Explorer complained that it couldn't read the
source file or the disk). I finally managed to get the directory deleted
from a Windows command prompt.

lothan@LOTHAN2 ~/test
$ ls -a
.        ..       .new.    a.exe    test.c   test2.c

lothan@LOTHAN2 ~/test
$ ls -al
ls: .new.: No such file or directory
total 13
drwxr-xr-x   2 lothan   None            0 Dec 17 17:10 .
drwxr-xr-x   4 lothan   None         4096 Dec 17 16:24 ..
-rwxr-xr-x   1 lothan   None        17742 Dec 17 17:10 a.exe
-rw-r--r--   1 lothan   None          196 Dec 17 16:58 test.c
-rw-r--r--   1 lothan   None           93 Dec 17 17:10 test2.c

I can duplicate the behavior quite easily using this code:

#include <sys/unistd.h>
#include <sys/fcntl.h>

main()
{
    int f;

    /* open() also works */
    f = creat(".new.:0", O_RDWR | O_CREAT);
    write(f, "this is a test\n", 15);
    close(f);
}

WARNING: run the resulting executable in an empty directory. The only way I
can delete the file is to delete the directory from a Windows command prompt
(rd test). I did try unlink(".new.:0") but it failed.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]