This is the mail archive of the
cygwin-developers@sources.redhat.com
mailing list for the Cygwin project.
Re: [RFD]: Execute permission for DLLs?
- To: cygdev <cygwin-developers at sources dot redhat dot com>
- Subject: Re: [RFD]: Execute permission for DLLs?
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Tue, 31 Oct 2000 06:31:53 -0800 (PST)
--- Corinna Vinschen <vinschen@cygnus.com> wrote:
> On NTFS partitions, NT/W2K require the execute permission for DLLs to
> allow loading a DLL on process startup.
>
> That's no problem unless a person using `ntsec' gets a tar archive
> packed by a person not using `ntsec' or packing on a FAT partition.
> Since Cygwin fakes the execute permission only for the suffixes
> "exe", "bat", "com", DLLs are treated as non executable by the
> stat() call when `ntsec' isn't set.
>
> When a person using `ntsec' unpacks that tar archive, the start of
> an application which requires one of the DLLs from the archive will
> fail with the Windows message
>
> "The application failed to initialize properly (0xc0000022)"
>
> which isn't that meaningful for most of the users.
>
> To solve that problem we would have to do a simple step. Fake
> execute permissions for DLLs when `ntsec' isn't set or the file
> system doesn't support ACLs (FAT/FAT32).
>
> Thoughts?
>
Lame windows. Sounds like the correct workaround.
Cheers,
=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com
--- <http://earniesystems.safeshopper.com> ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
--- Minimalist GNU for Windows <http://www.mingw.org/> ---
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/