Postinstall for mintty fails when installing "just for me"

Corinna Vinschen
Wed Aug 18 11:35:00 GMT 2010

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.

> I think I'll go with your previous suggestion of just going ahead and
> trying to create the 'All Users' shortcut and falling back to the
> user's start menu if that fails.
> Although, perhaps there's a way to tell from $CYGWINROOT whether we're
> dealing with an install for all users or "just me"?

No, but I don't think it would hurt to enhance setup.exe, either by
adding arguments to postinstall/preremove scripts, or by adding an
environment variable like $CYGWIN_AUDIENCE with the values "all_user" or


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list