X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10202242139.AA20004@clio.rice.edu> Subject: Re: cp complains about timestamps of directories To: djgpp-workers AT delorie DOT com Date: Sun, 24 Feb 2002 15:39:18 -0600 (CST) In-Reply-To: <3405-Sun24Feb2002180347+0200-eliz@is.elta.co.il> from "Eli Zaretskii" at Feb 24, 2002 06:03:48 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > c:\foo> cp -pvPr dir1/* dir2 > cp: preserving times for dir2/dir1: Permission denied (EACCES) > 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. Is this check in the library or in the application? > I'm also puzzled as to why is the message printed after cp copies > dir1/file1, not after it copies dir1 into dir2. I didn't see this (see below). > My cp.exe is dated June 4, 2001, and its size is 128000 bytes, in case > this is important. I don't have this cp.exe - I have an (old) cvs/w2k testing one and the one I updated in the refresh. I copied my djgpp tree as the test. I get: cp: preserving times for test/djgpp: Permission denied (EACCES) after the last file in djgpp/bin is copied - with both images. I don't see this message for any other directories in the tree, just this one (which is the first one). So, I also see this message, but only for the first directory copied, and after the contents of the directory were copied. I also observed random failures when setting the file dates. Using both the cvs version and 2.03 refresh I got some EACCES errors (1 or 2 for each tree also in the bin directory). File copied fine, but the date was not set. This testing was under Win95 (don't have access to other boxes now).