🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #6579

Re: What does the read-only bit mean?

#6579
From: Allan Pratt
Date: Tue, 05 Dec 1989 19:23
24 lines
1519 bytes
VBRANDT@DBNUAMA1.BITNET writes:
>   As most of you know there is a bit in the attribute byte that indicates
>READ-ONLY status when it's set.  This means that the file can't be written
>to, can't be renamed or deleted.
>   BUT: I can change the time/date entry with Fgsdatim() (or whatever the
>GEMDOS function is called).  Is this a bug or a feature??  Or is it necessary
>to enable the desktop to retain the time/date stamp while copying read-only
>files?

Well, here's the logic behind it: setting the read-only bit means you
can't change the DATA IN THE FILE.  You can still change the file's
directory entry, which includes its date and time.  This is necessary
because you must be able to change the file's attribute byte, also in
the directory.  If you couldn't do that, you couldn't ever
un-write-protect the file.

Alternatively, the answer is, "Because that's how Jason Loveman
implemented it."

It's not likely to change.

============================================
Opinions expressed above do not necessarily	-- Allan Pratt, Atari Corp.
reflect those of Atari Corp. or anyone else.	  ...ames!atari!apratt
Technical Details
Message-ID: <1861@atari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!fox!portal!atari!apratt
References: <8912050801.AA12624@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!fox!portal!atari!apratt
From: apratt@atari.UUCP (Allan Pratt)
Newsgroups: comp.sys.atari.st
Subject: Re: What does the read-only bit mean?
Message-ID: <1861@atari.UUCP>
Date: 5 Dec 89 19:23:23 GMT
References: <8912050801.AA12624@ucbvax.Berkeley.EDU>
Organization: Atari Corp., Sunnyvale CA
Lines: 24