Subject: CVS commit: src/usr.bin/mktemp
To: None <source-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: source-changes
Date: 04/02/2004 10:44:22
Module Name: src
Committed By: jmmv
Date: Fri Apr 2 10:44:22 UTC 2004
Modified Files:
src/usr.bin/mktemp: mktemp.1
Log Message:
Use ${0##*/} in examples instead of $0, so that they can successfully create
the temporary file even if the test program is executed given its full path.
That is, running /somewhere/test.sh could result in a call to mktemp like
mktemp /tmp//somewhere/test.sh.XXXXX, which fails.
Fixes PR misc/23447 by Piotr Meyer.
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 src/usr.bin/mktemp/mktemp.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.