X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 18 Aug 2010 13:43:44 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Postinstall for mintty fails when installing "just for me"
Message-ID: <20100818114343.GV11340@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <0105D5C1E0353146B1B222348B0411A20945256668@NIHMLBX02.nih.gov> <AANLkTinZ+a6w71LKGUvoytvJBNONeC6kYMweTjCUXN-R@mail.gmail.com> <20100817084858.GA16404@calimero.vinschen.de> <0105D5C1E0353146B1B222348B0411A2094525666F@NIHMLBX02.nih.gov> <20100818084323.GN11340@calimero.vinschen.de> <AANLkTimQ1t1KVxEFVpyDBS3_uoxYwhoAqp4Ln6bTrJmP@mail.gmail.com> <20100818113541.GT11340@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20100818113541.GT11340@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug 18 13:35, Corinna Vinschen wrote:
> On Aug 18 12:24, Andy Koppe wrote:
> > On 18 August 2010 09:43, Corinna Vinschen wrote:
> > > Andy, to workaround this, you *could* create a user mount first which
> > > has no "noacl", then use the user mount to check permissions, and
> > > eventually umount again.  Like this:
> > >
> > >  PROGS=/tmp/.mintty-postinstall-$$
> > >  mount -f "`cygpath -APm`" $PROGS
> > >  if [ -w "$PROGS" ]; then
> > >    [...]
> > >  else
> > >    [...]
> > >  fi
> > >  umount $PROGS
> > 
> > Hmm, I'm a bit afraid that might find creative new ways of going wrong. ;)
> 
> The only way that could go wrong is, if the user already has 30 mount
> points, since that's the current maximum nuber of allowed mounts.

Btw., see /bin/ssh-host-config, line 93 :)


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

