www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <0105D5C1E0353146B1B222348B0411A20945256668@NIHMLBX02.nih.gov> |
References: | <0105D5C1E0353146B1B222348B0411A20945256668 AT NIHMLBX02 DOT nih DOT gov> |
Date: | Tue, 17 Aug 2010 06:52:44 +0100 |
Message-ID: | <AANLkTinZ+a6w71LKGUvoytvJBNONeC6kYMweTjCUXN-R@mail.gmail.com> |
Subject: | Re: Postinstall for mintty fails when installing "just for me" |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 17 August 2010 02:26, Buchbinder, Barry wrote: > $ bash --norc --noprofile /etc/postinstall/mintty.sh > /bin/mkdir: cannot create directory `/c/Documents and Settings/All Users/Start Menu/Programs/Cygwin': Permission denied > mkshortcut: Saving "C:\Documents and Settings\All Users\Start Menu\Programs\Cygwin\mintty.lnk" failed; does the target directory exist? > /bin/chmod: cannot access `/c/Documents and Settings/All Users/Start Menu/Programs/Cygwin/mintty.lnk': No such file or directory > echo $? > 1 Hmm, the test at the top of the script is meant to avoid that, by checking whether the 'All Users/Start Menu/Programs' folder is writable. Any idea why that's saying yes when apparently it isn't writable? Is there a proper way for a postinstall script to find out whether it's an install for all users or "Just Me"? Here's the script for reference: PROGS=$(/bin/cygpath -AP) if [ -w "$PROGS" ]; then /bin/mkdir -p "$PROGS/Cygwin" /bin/mkshortcut -AP -n Cygwin/mintty -a - -d Terminal /bin/mintty.exe /bin/chmod a+r "$PROGS/Cygwin/mintty.lnk" else /bin/mkdir -p "$(/bin/cygpath -P)/Cygwin" /bin/mkshortcut -P -n Cygwin/mintty -a - -d Terminal /bin/mintty.exe fi Andy -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |