22 lines
611 B
Text
22 lines
611 B
Text
|
$NetBSD: patch-ae,v 1.1 2001/08/23 21:18:31 fredb Exp $
|
||
|
|
||
|
*** ../src/unix/util/relpath 21 May 2001 03:43:46 -0000 1.1.1.1
|
||
|
--- ../src/unix/util/relpath 21 May 2001 03:45:25 -0000
|
||
|
***************
|
||
|
*** 44,50 ****
|
||
|
path=$2
|
||
|
|
||
|
for dir in `echo $cwd | tr '/' ' '`; do
|
||
|
! if expr match $path "/$dir" >/dev/null; then
|
||
|
path=`echo $path | sed "s,^/$dir,,"`
|
||
|
cwd=`echo $cwd | sed "s,^/$dir,,"`
|
||
|
fi
|
||
|
--- 44,50 ----
|
||
|
path=$2
|
||
|
|
||
|
for dir in `echo $cwd | tr '/' ' '`; do
|
||
|
! if expr X$path : X"/$dir" >/dev/null; then
|
||
|
path=`echo $path | sed "s,^/$dir,,"`
|
||
|
cwd=`echo $cwd | sed "s,^/$dir,,"`
|
||
|
fi
|