delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/09/05:09:52

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200106090909.LAA26071@mother.ludd.luth.se>
Subject: Re: .files on servers are perceived as readonly
To: djgpp-workers AT delorie DOT com
Date: Sat, 9 Jun 2001 11:09:22 +0200 (MEST)
In-Reply-To: <7458-Sat09Jun2001092906+0300-eliz@is.elta.co.il> from "Eli Zaretskii" at Jun 09, 2001 09:29:06 AM
X-Mailer: ELM [version 2.5 PL2]
MIME-Version: 1.0
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

According to Eli Zaretskii:
> > I don't think HIDDEN or SYSTEM attibutes should be mapped to readonly.
> 
> It was like that since DJGPP v2.0 at least, maybe before that.  We've
> got to have a very good reason to change that now.

Yeah. Like it's wrong?

> Why do you think these attributes shouldn't be mapped to readonly?

Because there's a readonly attribute. If you want a file readonly you
set this attribute not the SYSTEM or HIDDEN bits.

> Also, how come .cvsignore got the hidden and system attribute bits
> set?  They aren't on my box where I use CVS to sync with the DJGPP
> tree.  (Does "ls -lg" indeed show these two attributes?)

It's the hidden attribute that is set and yes ls -lg shows it.

> ls --version
ls (GNU fileutils) 4.0
> ls -agl v:/martin/djgpp/djgpp/src/libc/.cvsignore
-h----        60 Jun  5 21:14 v:/martin/djgpp/djgpp/src/libc/.cvsignore

It's probably samba that maps .files to hidden as they are hidden in
the Unix sense if they start with ".".


By the way there seems to be a bug here (it's my own compiled ls so
perhaps not the latest):

> ls -agl v:/martin/djgpp/djgpp/src/libc/
total 0
----d-        96 Jun  8 23:10 cvs

Is it supposed to bahave like that?

Plus a bug in the docs. They say "The '-g' option is accepted but
ignored, for compatiblity with Unix." in the ls node.


Right,

						MartinS

- Raw text -


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