delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/17/06:56:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B7BDD90.9050306@gmail.com>
Date: Wed, 17 Feb 2010 12:14:08 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Have set mount --change-cygdrive-prefix "/" : now getting tripped up by hardwired /cygdrive/
References: <4B7BCD0F DOT 4000004 AT bonhard DOT uklinux DOT net>
In-Reply-To: <4B7BCD0F.4000004@bonhard.uklinux.net>
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

On 17/02/2010 11:03, Fergus wrote:
> On my system I've changed the cygdrive path prefix by setting
>    mount -c "/"
> (and have done this for years). I've just tried using dvipdf which
> appears to have a hardwired requirement to locate a temporary file under
> /cygdrive/c/.. 

  It seems pretty unlikely that it would have any hardcoded path at all, let
alone one under /cygdrive, and there's certainly no matching string in the
dvips executable.  It's more likely coming in from somewhere else.  Have you
remembered to update any environment variables such as $TEMP or $HOME or
whatever that might still have /cygdrive paths in them?

> I'm perplexed because (a) there must be lots of examples of hardwired
> /cygdrive/ lying around in Cygwin (yes?) 

  No, or at any rate there shouldn't be.  Anything that needs to know that
prefix should be deriving it from /etc/mtab.

  (Hmmph, on a side-note, it looks like we need to tweak our mtab format to be
unambigouously machine parseable wrt. paths containing spaces.)

> and because (b) I'm moderately
> certain that in the past I have deliberately used this prefix  (even
> after setting mount -c "/") and Cygwin "knows what I mean". (Actually
> I'm sure I've used dvipdf and not too long ago.) 

  Yeah, but you've probably misanalysed what's going on there.

> That is, I dimly
> thought mount -c "/" enabled the shorthand without disabling the
> longhand. 

  Nope.

> (Though I've just looked back at my version of 1.5.25 and this
> sequence leads to identical errors.)
> 
> Is there a way I can change the cygdrive path prefix as described, but
> keep /cygdrive/ understood?

  You can mkdir a real "cygdrive" dir under "/" and place soft-links "c" ->
"/c", "d" -> "/d" as needed.  (This avoids the horrors of a recursive file
system that would arise if you created a softlink in "/" called "cygdrive"
pointing back to "/".)

    cheers,
      DaveK


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019