delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/04/20/21:54:50

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
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 20 Apr 2000 22:54:54 -0400
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: normalize_posix_path can't take root access into account yet.
Message-ID: <20000420225454.A4366@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, cygwin-developers AT sourceware DOT cygnus DOT com
References: <s1sd7nktbmd DOT fsf AT jaist DOT ac DOT jp>
Mime-Version: 1.0
User-Agent: Mutt/1.1.8i
In-Reply-To: <s1sd7nktbmd.fsf@jaist.ac.jp>; from fujieda@jaist.ac.jp on Fri, Apr 21, 2000 at 11:46:02AM +0900

I don't understand.  Can you provide an example of how this is failing?
I don't see a difference between my change and yours.

cgf

On Fri, Apr 21, 2000 at 11:46:02AM +0900, Kazuhiro Fujieda wrote:
>normalize_posix_path can't take root access into account yet.
>The following patch can fix it.
>
>ChangeLog:
>Fri Apr 21 11:29:43 2000  Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
>	* path.cc (normalize_posix_path): Previous change failed to take root
>	access into account, too.
>
>--- path.cc-1.12	Fri Apr 21 11:43:53 2000
>+++ path.cc	Fri Apr 21 11:29:43 2000
>@@ -620,7 +620,7 @@ normalize_posix_path (const char *cwd, c
> 	}
>     }
>   if (dst > (dst_start + 1) && dst[-1] == '.' && SLASH_P (dst[-2]))
>-    dst -= dst[2] ? 2 : 1;
>+    dst -= (dst > dst_start + 2) ? 2 : 1;
>   *dst = 0;
>   debug_printf ("%s = normalize_posix_path (%s)", dst_start, src_start);
>   return 0;
>
>____
>  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
>  | HOKURIKU  School of Information Science
>o_/ 1990      Japan Advanced Institute of Science and Technology

-- 
cgf AT cygnus DOT com                        Cygnus Solutions, a Red Hat company
http://sourcware.cygnus.com/          http://www.redhat.com/

- Raw text -


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