X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 21 Feb 2012 18:11:00 +0100 From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com> To: cygwin AT cygwin DOT com Subject: Re: shared_info::init_obcaseinsensitive implemented incorrectly Message-ID: <20120221171100.GM22597@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <CADSoG1so=3KxR5TS6mVNRhZGkdUku42Y=S3eWV0dtDgiZE8Tww AT mail DOT gmail DOT com> <CADSoG1uVEpxOSxAm2ZtbzE9oh95TcAQYkj_YRAZxP0tL8-3uDQ AT mail DOT gmail DOT com> <CADSoG1v5skh+gsKmBfVSbykA+AXHJjJEs+oTWsjSav04BvUNzg AT mail DOT gmail DOT com> <CADSoG1uBYBYYW6K+XS-N3ouQN3-x7dYWzR5vQ16DaR2WShd45Q AT mail DOT gmail DOT com> <CADSoG1sCUeC=6UCmTmb56pWFoDM0mR9+RT0ozGNRtiaMPsbBCA AT mail DOT gmail DOT com> <CADSoG1vOz3agNFs2dG_u4D-Kw4PBv+YHdJUE_ziSUOCaqdo35g AT mail DOT gmail DOT com> <20120221115510 DOT GG22597 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120221115510.GG22597@calimero.vinschen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: <cygwin.cygwin.com> List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Feb 21 12:55, Corinna Vinschen wrote: > > > Please, don't http://cygwin.com/acronyms/#TOFU > > > On Feb 21 11:34, Nick Lowe wrote: > > I really should subscribe to get individual messages and not just the > > digest so that I can reply properly. Sorry! > > > > > Just call NtOpenDirectoryObject on \\SYSTEMROOT, rather than NtOpenSymbolicLinkObject. > > > > I would have thought that NtOpenSymbolicLinkObject would have been the > > more correct approach as the object expected is a symbolic link. No? > > Depends on what you define as correct. Since you only call the function > to find out the state of case sensitivity and don't need the handle, > why not use a function which you know fails in a specific way? > > > >That's not an off-chance. It works for all admin accounts. > > > > Hmm, strange. Unless the query (0x1) symbolic link specific access > > right is specified, I always get STATUS_ACCESS_DENIED. With it > > specified, it succeeds as an administrator or fails otherwise. > > I missed that. You're right, with a 0 access mask it fails with > STATUS_ACCESS_DENIED. Well, it works one way or the other, right? :) I applied a matching patch: http://cygwin.com/ml/cygwin-cvs/2012-q1/msg00115.html Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple