This is the mail archive of the cygwin@sourceware.cygnus.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]

cp -r produces junk files and has permission probs



I'm trying to cp -r a tree from a local drive to a network 
drive F: which is mounted as follows:

Device           Directory           Type        Flags
f:               /f                  native      text!=binary
\\.\tape1:       /dev/st1            native      text!=binary
\\.\tape0:       /dev/st0            native      text!=binary
\\.\b:           /dev/fd1            native      text!=binary
\\.\a:           /dev/fd0            native      text!=binary
d:               /d                  native      text!=binary
C:               /                   native      text!=binary

That is a web server directory exported via SAMBA on that unix (FreeBSD)
web server.

While writing I'm getting a buncha permission denied messages and
after the cp -r only one directory contains files while the other
contains this:


F:\probanden\2.06.0\suites\0554412>ls -l
total 219
-rw-r--r--   1 0        everyone    34816 Jul 19 20:03 0554412.cl
-rw-r--r--   1 0        everyone   154624 Jul 19 20:03 0554412.exa
-rw-r--r--   1 0        everyone   154624 Jul 19 20:03 0554412.exl
crw-r--r--   0 0        everyone   0,   0 Jan  1  1970 0554412.exp
-rw-r--r--   1 0        everyone      445 Jul 19 20:03 0554412.log
-rw-r--r--   1 0        everyone        0 Jul 19 20:03 0554412.ok
-rw-r--r--   1 0        everyone        0 Jul 19 20:03 0554412.ppl
-rw-r--r--   1 0        everyone     3231 Jul 19 20:03 dablog.log
-rw-r--r--   1 0        everyone     1665 Jul 19 20:03 diblegeo.exa
-rw-r--r--   1 0        everyone    16384 Jul 19 20:03 diblegeo.exo
-rw-r--r--   1 0        everyone        0 Jul 19 20:03 nutform5.exa
-rw-r--r--   1 0        everyone    57344 Jul 19 20:03 nutform5.exo
-rw-r--r--   1 0        everyone     3687 Jul 19 20:03 stobugeo.exa
-rw-r--r--   1 0        everyone    16384 Jul 19 20:03 stobugeo.exo

(see the character device?)

The fourth but last file (0 bytes) was one that got permission errors
The file that got a character device has 0 bytes in the source
directory but there are othe files with 0 bytes that got copied
as normal files.

Should I revert to XCOPY? Nah, don't tell me :-)

-- 
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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