From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27793 invoked by alias); 6 Dec 2015 14:10:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27785 invoked by uid 89); 6 Dec 2015 14:10:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from ipbcc02fe8.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.47.232) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Dec 2015 14:10:56 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id D7E17A80629; Sun, 6 Dec 2015 15:10:54 +0100 (CET) Date: Sun, 06 Dec 2015 14:10:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Ability to specify /cygdrive mount value in setup Message-ID: <20151206141054.GC17433@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20151125140420.12415@web008.roc2.bluetie.com> <1447966985.20151125232513@yandex.ru> <56562105.5040500@gmail.com> <6CF2FC1279D0844C9357664DC5A08BA21BC3C3B8@msgb09.nih.gov> <20151126134221.GN2755@calimero.vinschen.de> <87mvtnucw6.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="da4uJneut+ArUgXk" Content-Disposition: inline In-Reply-To: <87mvtnucw6.fsf@Rainer.invalid> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-12/txt/msg00064.txt.bz2 --da4uJneut+ArUgXk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1356 On Dec 6 10:47, Achim Gratz wrote: > Corinna Vinschen writes: > > The right thing to do is to change the base-files package to utilize > > /proc/cygdrive. It's a vrtual symlink pointing to the actual cygdrive > > prefix currently in use. If these symlinks under /etc used the > > /proc/cygdrive symlink, they would work all the time, independenly of > > the actual cygdrive prefix. >=20 > I've looked into it and I'd like to give that task back to the cygpath > maintainer. :-) >=20 > > Achim, any chance to tweak base-file accordingly? >=20 > At the moment I'm using $(/usr/bin/cygpath -S -u) to get the system > directory. Since the /cygdrive prefix could be anything, I'd either > have to first figure it out via $(dirname $(/usr/bin/cygpath -u C:)) > since the output from mount is a bit unwieldy. Maybe we should just > force the cygdrive prefix to be /cygdrive for postinstall scripts > anyway. No offense, but you didn't understand what I mean, it seems. Don't call cygpath. Just use /proc/cygdrive directly. It's that simple. While the cygdrive prefix changes, /proc/cygdrive will *never* change. E.g. Substitute $(dirname $(/usr/bin/cygpath -u C:)) with /proc/cygdrive/c Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --da4uJneut+ArUgXk Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWZEHuAAoJEPU2Bp2uRE+gLuAP/3kRCcpzAfovY/MwytHQjQXh sECvSFEdVy8Qnu5hYZgtaUgmumKx8IZYMfxw+9Y4V8vPg4QA4prgHvXDsGsFa3kP qC6CGpYy24m5eD3CK0AXrhdTdZi/O0HU20BXlZqsA+60r/AROYhvBespGe6Nj9Nw iMJfVVeKLEPWoNFDKXaUFybEAGQhmOmQN5T2P9K6Tq/KKyGKNhsV4pPIyN9SnPgq P3NvWQMPpYWMBLi2r13mkNOg03O9iex6XgImVkhvZyvPjfWsZ9dr7/pXGixXrROa l2eP1jSR5VimZ8/jG360e7+Yd0hWAtp7C6Jzm5ZUX+JRdGdqQJ0VGtZzSeOAk1w3 Uc0SDzQdwODYshSd4Qj1Mzfz6qBvWIxBuvyVeotjcaVHMEcWL2xNRXNEICWDFtnW cXvIqepLNKoVsFcnuTskU20fPocTe/bQ8dhqSyBxMRBOp/bmFfhRVmxD8Rdm6ihZ 2zVFMjKi4tYwVVNGyjH7FAm0DtYp7fStPrTrW6vDtcrFK3f1bJhPTcN7eCzwtGyW T29frCpkVGchCU56AouSvco/f9j7A2/D31oEOO/a+SJkZP7SOKjfey4fu5rpyEAH osZuSkC/YBuS8xOrl2X7nyKbyXu0mCso48zYSjzm6XjkQo9Lz4zodBTc3IdAA4+O ivru9nkvQIkQzxQHIL0w =yZnH -----END PGP SIGNATURE----- --da4uJneut+ArUgXk--