delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/06/17/17:23:34

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: [earnie_boyd AT yahoo DOT com: Re: Wierd mount problem with "latest" release]
References: <20000617124338 DOT D952 AT cygnus DOT com>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 18 Jun 2000 06:23:12 +0900
In-Reply-To: Chris Faylor's message of Sat, 17 Jun 2000 12:43:38 -0400
Message-ID: <s1sn1kkovcv.fsf@jaist.ac.jp>
Lines: 35
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Sat, 17 Jun 2000 12:43:38 -0400
>>> Chris Faylor <cgf AT cygnus DOT com> said:

> Is this problem fixed by your recent changes to cygwin, Kazuhiro?

No, the latest implementation still causes the same problem.
I guessed `isabspath' can reject `c:cygwin' at the beginning of
mount_info::add_item, but it can't. I suggest modifying its
definition.

ChangeLog:
2000-06-17  Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>

	* winsup.h (isabspath): `C:foo' isn't an absolute path.

Index: winsup.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/winsup.h,v
retrieving revision 1.10
diff -u -p -r1.10 winsup.h
--- winsup.h	2000/05/17 05:49:51	1.10
+++ winsup.h	2000/06/17 21:06:13
@@ -357,7 +357,7 @@ extern unsigned int signal_shift_subtrac
 
 #define isdirsep SLASH_P
 #define isabspath(p) \
-  (isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':'))
+  (isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':' && (!(p)[2] || isdirsep ((p)[2]))))
 
 /******************** Initialization/Termination **********************/
 
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


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