delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=nMvqX2Cf6uIHZn+N | |
YFhoHfUNTCG06BNb3h7mAA46Y0BO+YtIugXJeA+V03fwZBr1WisSBYpE+/qQwzjS | |
jivmWiCRB8TVQIN3PTKnt05pIgN7PuXq3IQCh5qCeir858qoZcNPSyMWtzyH7vj3 | |
4d6+VyaZQ7ICySF5h66gKw5kUfk= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=qh1AidXfFiXomCSU5vGHuk | |
i2sEo=; b=sSj9QiYjUEoDHBx6sVjLqqwai0yLg7KcT9Vkwy6P5PcM4O04M7w264 | |
p27cwHmQMrwGYBoFWG/5ihtEiyNioVOkg43H4feVod/qxPNRe5PCE++FAnUhiI4U | |
aQsEEpTNJ0JFraruvpWMb/9SokNFJhFRvVHN704C7i26GTW2NujcQ= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=calgary, Calgary, alberta, Alberta |
X-HELO: | smtp-out-no.shaw.ca |
X-Authority-Analysis: | v=2.2 cv=M/g9E24s c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=N659UExz7-8A:10 a=w_pzkKWiAAAA:8 a=jsVjEt6rpIQ5ml61CgMA:9 a=JpLCNqZxkZnm9G4Q:21 a=pILNOxqGKmIA:10 a=daI9ojH3vpgA:10 a=sRI3_1zDfAgwuvI8zelB:22 |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
Subject: | Re: mkshortcut fails when run from setup, postinstall/cygwin-doc.sh - not otherwise |
To: | cygwin AT cygwin DOT com |
References: | <ea0e60e8cd4b773198d4ef8f863cdd1e AT perezterron DOT net> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Message-ID: | <0bd3dde8-96c2-e007-fb44-96779eb5aff1@SystematicSw.ab.ca> |
Date: | Wed, 20 Dec 2017 16:13:50 -0700 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <ea0e60e8cd4b773198d4ef8f863cdd1e@perezterron.net> |
X-CMAE-Envelope: | MS4wfH/x0iOP1bINEf1Xy4r9QxVxoRkbxEXrn3vuynvchmDPFSCRgGDjKfdjmAl3wNO7KiaroXu7EkjrqLUYlwQivHDB9RKplT2or7Z+pTSE0GLtSwCdR4/e A1jgkIJrB6Tq9yBRblxHAK0G0JDtSYYR7xONb6QDJqE4nrWXHJukvTW2wHSkC4B8bv2PGb0q7Zp/Zw== |
X-IsSubscribed: | yes |
On 2017-12-20 05:59, Enrique Perez-Terron wrote: > Lately, whenever I run setup (x86), my /var/log/setup.log.full contains: > 2017/12/20 03:07:44 running: C:\cygwin\bin\bash.exe --norc --noprofile > "/etc/postinstall/cygwin-doc.sh" > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/User Guide (PDF).lnk" failed; does the target directory > exist? > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/User Guide (HTML).lnk" failed; does the target directory > exist? > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/API (PDF).lnk" failed; does the target directory exist? > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/API (HTML).lnk" failed; does the target directory exist? > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/Home Page.lnk" failed; does the target directory exist? > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/FAQ.lnk" failed; does the target directory exist? > 2017/12/20 03:07:45 abnormal exit: exit code=3 > Please notice the extra C:/ in front of the target link name. > So I have added a line "set -x" at the top in postinstall/cygwin-doc.sh, and > the relevant section becomes > + read target name desc > + '[' -r ']' > + /bin/mkshortcut -A -P -n 'Cygwin/User Guide (PDF)' -d 'Cygwin User Guide PDF' > -- /usr/share/doc/cygwin-doc/cygwin-ug-net.pdf > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/User Guide (PDF).lnk" failed; does the target directory > exist? > + read target name desc > + '[' -r ']' > + /bin/mkshortcut -A -P -n 'Cygwin/User Guide (HTML)' -d 'Cygwin User Guide > HTML' -- /usr/share/doc/cygwin-doc/html/cygwin-ug-net/index.html > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/User Guide (HTML).lnk" failed; does the target directory > exist? > + read target name desc > + '[' -r ']' > + /bin/mkshortcut -A -P -n 'Cygwin/API (PDF)' -d 'Cygwin API Reference PDF' -- > /usr/share/doc/cygwin-doc/cygwin-api.pdf > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/API (PDF).lnk" failed; does the target directory exist? > + read target name desc > + '[' -r ']' > + /bin/mkshortcut -A -P -n 'Cygwin/API (HTML)' -d 'Cygwin API Reference HTML' > -- /usr/share/doc/cygwin-doc/html/cygwin-api/index.html > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/API (HTML).lnk" failed; does the target directory exist? > + read target name desc > + read target name desc > + /bin/mkshortcut -A -P -n 'Cygwin/Home Page' -d 'Cygwin Home Page Link' -a > https://cygwin.com/index.html -- /bin/cygstart > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/Home Page.lnk" failed; does the target directory exist? > + read target name desc > + /bin/mkshortcut -A -P -n Cygwin/FAQ -d 'Cygwin Frequently Asked Questions > Link' -a https://cygwin.com/faq.html -- /bin/cygstart > mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start > Menu/Programs/C:/cygwin/FAQ.lnk" failed; does the target directory exist? > (by the way -- this reveals another bug too: The script says "[ -r $t ] && $mks > ..." where I am sure it should be "[ -r $target ] && $mks ...") > (and again btw, I am not sure bash should count "[ -r ]" as a true statement) > The script issues mkshortcut commands with sane arguments, no extra "C:/" in there. > So I just tried to run the script from an elevated-privilege mintty shell: > $ CYGWINFORALL=-A /bin/bash /etc/postinstall/cygwin-doc.sh > But then it does NOT fail, and the shortcuts do get installed -- they were not > present before. CYGWINFORALL=-A requires elevation or security changes to install for all users. mkshortcut may be defaulting something incorrectly when -A -P is specified without elevation? Patch submitted for variable typo - thanks for catching and reporting. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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 |