Mail Archives: djgpp/2002/05/23/17:30:20
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 -