delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/03/02/10:41:26

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3C80E3A5.AC035810@phekda.freeserve.co.uk>
Date: Sat, 02 Mar 2002 14:37:25 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: cp complains about timestamps of directories
References: <3405-Sun24Feb2002180347+0200-eliz AT is DOT elta DOT co DOT il>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Eli Zaretskii wrote:
[snip]
> 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.

Since later versions of Windows can support this, I don't think the warning
needs to be suppressed.

Fileutils 4.0 avoids trying to set the timestamp in some cases, to avoid
failing on older versions of Windows. For the Fileutils 4.1 port, I'll make it
conditional on the OS version - i.e. try setting for Windows 2000 and later -
so the functionality is supported, where possible.

BTW src/libc/dos/dos/getdos_v.txh
does not describe _os_trueversion at all. I think it should, like it does for
_os_minor and _os_major.

Thanks for the bug report.

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019