delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/22/21:30:09

Newsgroups: comp.os.msdos.djgpp
From: Bart Oldeman <enbeo AT pg5 DOT enm DOT bris DOT ac DOT uk>
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: <slrnaeogjl.jj2.enbeo@pg5.enm.bris.ac.uk>
References: <2f64dfca DOT 0205220347 DOT 19c11bad AT posting DOT google DOT com> <acg2n8$ck7$1 AT antares DOT lu DOT erisoft DOT se> <2f64dfca DOT 0205221125 DOT 7fbe18d1 AT posting DOT google DOT com>
Date: Thu, 23 May 2002 01:16:46 GMT
Lines: 55
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <2f64dfca DOT 0205221125 DOT 7fbe18d1 AT posting DOT google DOT com>, 
Tony Richardson wrote:
> eplmst AT lu DOT erisoft DOT se (Martin Stromberg) wrote:
>> Tony Richardson (richardson AT evansville DOT edu) wrote:
>> : following permissions
>>  
>> :   drw-rwxr-x    2 richards richards     4096 May 22 06:34 djgpp/
>>  
>> : I very much suspect that the no execute permission for user/owner on
>> : the directory is the problem (since I can't create directories or
>> : files under that directory from Linux either).
>> : I am not using a DOS hard drive partition or an image file.  I don't
>> : have a DOS partition and DOSemu seems to be dropping support for image
>> : files in favor of redirecting the C drive to a linux directory tree. 
>> : I suspect this is part of the problem though.
>>  
>> : Has anyone run into this problem?  Have a fix?
>> 
>> It looks like a problem in dosemu.  Ask on their list.
> 
> I'll try.  It's strange though, I can create directories under dosemu
> with no problems and I've installed other software without a hitch too.

well, I looked at the code (mfs.c, the "Mach File System") and this is what 
DOSEMU does:
DOS MKDIR -> mkdir with 0755 (drwxr-xr-x & ~umask)
so that's not the problem.

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.
The problem is probably that your DOS program did the equivalent of

attrib +a djgpp

which resets the x bit.

attrib -a djgpp
sets the x bit again.

Maybe rule (2) should be ignored for directories.
Then directories in DOSEMU will appear having the archive bit either 
permanently set or permanently reset, I would need to lookup what MSDOS
MKDIR does by default (setting or not setting the ARCHIVE bit), that 
should be it.

Bart

Bart

- Raw text -


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