delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/23/17:30:20

From: richardson AT evansville DOT edu (Tony Richardson)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP Install Problems (DOSemu/FreeDOS beta 8)
Date: 23 May 2002 14:25:04 -0700
Organization: http://groups.google.com/
Lines: 65
Message-ID: <2f64dfca.0205231325.3e3dedb8@posting.google.com>
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> <slrnaeogjl DOT jj2 DOT enbeo AT pg5 DOT enm DOT bris DOT ac DOT uk>
NNTP-Posting-Host: 192.195.226.2
X-Trace: posting.google.com 1022189105 20803 127.0.0.1 (23 May 2002 21:25:05 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 23 May 2002 21:25:05 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Bart Oldeman <enbeo AT pg5 DOT enm DOT bris DOT ac DOT uk> wrote:
> 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

Thanks Bart,  I think you've found the problem.  In dosemu I actually
have to type:

attrib +s +a directory

in order for the archive attribute to set.  I'll look through my
dosemu settings once again.

Tony

- Raw text -


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