X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Robert Riebisch Newsgroups: comp.os.msdos.djgpp Subject: Re: EACCES using 'touch' Date: Thu, 02 Oct 2008 14:51:53 +0200 Organization: none Lines: 22 Message-ID: <6kjufaF8384aU1@mid.individual.net> References: <20080920190501 DOT GA8618 AT sfbrgenetics DOT org> <20081002111447 DOT GA18742 AT sfbrgenetics DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net T28oSvaluzv4057LU3YbRAoh3XEcJXgkRkUyw2THTDguu0wePI Cancel-Lock: sha1:d13OIxF98/ZAET8OAdhlwLhWzGo= X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com JT Williams wrote: > I have tested the touch program from the djgpp ports of fileutils > versions 3.16, 4.0-r[2-5], and 4.1-r[1-7]. All versions refuse to > touch the timestamp on a directory, emitting a 'permission denied' > message. This behaviour is either a feature or a very old bug. 1) You only tried DJPP 2.03 ports or even older. 2) DJGPP 2.04's beta/v2gnu/fil41b.zip silently ignores such requests. 3) Such requests are probably ignored, because plain DOS doesn't offer an API to change a directory's timestamp. Touch would have to access the FAT (i.e., a file's directory entry) directly, but it doesn't for safety reasons. A nice tool to do this is written in Turbo Pascal. -- Robert Riebisch Bitte NUR in der Newsgroup antworten! Please reply to the Newsgroup ONLY!