Mail Archives: cygwin/2003/09/26/07:55:49
--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Marco,
On Thu, Sep 25, 2003 at 05:40:22PM -0400, Marco Mason wrote:
> I've installed cygwin on a new box. After I set it up, I could run it
> as administrator. However, when I logged into a test account, I can't
> successfully start it.
>
> Trying to run it under the test account in a DOS shell:
>
> D:\cygwin\bin>bash --login -i
> D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5.
> Terminating.
See the attached. It is likely the above is the same problem. If so,
then Pierre Humblet has a patch to correct this problem.
> Does anyone have an idea of what I should try?
What is you gid?
$ id -g
513
If it is not 544, then edit your /etc/passwd so that it is.
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--M9NhX3UHpAaciwkO
Content-Type: message/rfc822
Content-Disposition: inline
Date: Thu, 18 Sep 2003 09:07:01 -0400
From: Jason Tishler <jason AT tishler DOT net>
To: Cygwin-Developers <cygwin-developers AT cygwin DOT com>
Subject: Recent security improvements breaks proftpd
Message-ID: <20030918130700 DOT GD1204 AT tishler DOT net>
Mail-Followup-To: Cygwin-Developers <cygwin-developers AT cygwin DOT com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="2/5bycvrmDh4d1IB"
Content-Disposition: inline
User-Agent: Mutt/1.4i
--2/5bycvrmDh4d1IB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Pierre,
The following change breaks proftpd:
http://cygwin.com/ml/cygwin-cvs/2003-q3/msg00237.html
By "breaks", I mean the following failure occurs when a user attempts
to authenticate:
C:\Cygwin\usr\sbin\proftpd.exe: *** CreateFileMapping, Win32 error 5. Terminating.
I was able to workaround and isolate the problem with the attached
"patch" -- that is reverting to the old behavior.
Any ideas on how to fix the problem correctly?
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--2/5bycvrmDh4d1IB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="shared.cc.diff"
Index: shared.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/shared.cc,v
retrieving revision 1.73
diff -u -p -r1.73 shared.cc
--- shared.cc 11 Sep 2003 07:57:39 -0000 1.73
+++ shared.cc 18 Sep 2003 12:51:59 -0000
@@ -97,7 +97,7 @@ open_shared (const char *name, int n, HA
TRUE, mapname);
}
if (!shared_h &&
- !(shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, psa,
+ !(shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, &sec_all,
PAGE_READWRITE, 0, size, mapname)))
api_fatal ("CreateFileMapping, %E. Terminating.");
}
--2/5bycvrmDh4d1IB--
--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--M9NhX3UHpAaciwkO--
- Raw text -