Subject: CVS commit: src/usr.bin/ftp
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 05/26/2005 02:59:34
Module Name: src
Committed By: lukem
Date: Thu May 26 02:59:34 UTC 2005
Modified Files:
src/usr.bin/ftp: util.c version.h
Log Message:
Improve method used in fileindir() to determine if `file' is in or under `dir':
realpath(3) on non-NetBSD systems may fail if the target filename doesn't
exist, so instead use realpath(3) on the parent directory of `file'.
Per discussion with Todd Eigenschink.
To generate a diff of this commit:
cvs rdiff -r1.126 -r1.127 src/usr.bin/ftp/util.c
cvs rdiff -r1.50 -r1.51 src/usr.bin/ftp/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.