Newsgroups: comp.os.msdos.djgpp From: Bart Oldeman Subject: Re: DJGPP Install Problems (DOSemu/FreeDOS beta 8) User-Agent: slrn/0.9.7.4 (Linux) Sender: unknown AT pg5 DOT enm DOT bris DOT ac DOT uk (Address not verified) Organization: University of Bristol, UK Message-ID: References: <2f64dfca DOT 0205220347 DOT 19c11bad AT posting DOT google DOT com> <2f64dfca DOT 0205221125 DOT 7fbe18d1 AT posting DOT google DOT com> Date: Thu, 23 May 2002 18:39:59 GMT Lines: 41 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article , Martin Stromberg wrote: > Bart Oldeman (enbeo AT pg5 DOT enm DOT bris DOT ac DOT uk) wrote: >: However, DOSEMU uses a certain mapping between DOS and Unix file >: attributes/permissions: > >: DOS attribute UNIX >: read-only <->not writable (1) >: archive <->not executable (2) >: hidden <- filename starts with a dot and is not '..' (3) > >: Don't ask me why this is so, I don't know. > > samba is doing similar things. I think it's because if you want to > have DOZE specific attributes you have to have somewhere to put them. > > May I suggest that you only use one of the x bits to record the a bit. We already do so (S_IEXEC == 00100 == user x bit). >: Maybe rule (2) should be ignored for directories. > > That's a possible solution. But you might consider looking up the > samba way. Samba has "map archive = yes" mapping the user x bit to the archive attribute (without a "NOT", so it's reversed wrt DOSEMU) it can also do similar tricks for system and hidden files (group and world x bits). Samba does not appear to do any such mapping for directories and always forces the "archive", "system" and "hidden" attributes off for directories, unless (for hidden) their name starts with a . in Unix. Indeed it might be a good idea to make DOSEMU archive mappings compatible with Samba, including the ability to configure in dosemu.conf. Sorry for becoming a little off-topic here. Bart