Mail Archives: djgpp-workers/2002/02/24/11:31:11
Let's say you have a directory with 2 subdirectories, dir1 and dir2,
and let's say that dir1 has the files file1, file2, and file3 in it.
If you now type
c:\foo> cp -pvPr dir1/* dir2
cp will print this:
dir1 -> dir2/dir1
dir1/file1 -> dir2/dir1/file1
cp: preserving times for dir2/dir1: Permission denied (EACCES)
dir1/file2 -> dir2/dir1/file2
dir1/file3 -> dir2/dir1/file3
I understand why the error message is printed, but the DJGPP port
shouldn't print it, since we know DOS/Windows doesn't let us change
the time stamps of directories, so this failure is normal behavior,
not something the user should be bothered with.
I'm also puzzled as to why is the message printed after cp copies
dir1/file1, not after it copies dir1 into dir2.
My cp.exe is dated June 4, 2001, and its size is 128000 bytes, in case
this is important.
- Raw text -