Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/pathchk Change the ironically unafe "find . -print |...



details:   https://anonhg.NetBSD.org/src/rev/c536c9dca9b9
branches:  trunk
changeset: 758584:c536c9dca9b9
user:      apb <apb%NetBSD.org@localhost>
date:      Tue Nov 09 20:34:55 2010 +0000

description:
Change the ironically unafe "find . -print | xargs pathchk -p" to
the safe "find . -exec pathchk -p \{\} +" in an example.

diffstat:

 usr.bin/pathchk/pathchk.1 |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a0ef78056233 -r c536c9dca9b9 usr.bin/pathchk/pathchk.1
--- a/usr.bin/pathchk/pathchk.1 Tue Nov 09 16:31:48 2010 +0000
+++ b/usr.bin/pathchk/pathchk.1 Tue Nov 09 20:34:55 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pathchk.1,v 1.3 2003/04/15 20:40:28 wiz Exp $
+.\"    $NetBSD: pathchk.1,v 1.4 2010/11/09 20:34:55 apb Exp $
 .\"
 .\" Copyright (c) 2001, 2002 Chuck Rouillard
 .\" All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" from FreeBSD: pathchk.1,v 1.3 2002/12/12 17:26:01 ru Exp
 .\"
-.Dd April 15, 2003
+.Dd Oovember 9, 2010
 .Dt PATHCHK 1
 .Os
 .Sh NAME
@@ -104,7 +104,7 @@
 .Tn POSIX
 systems:
 .Pp
-.Dl "find . -print | xargs pathchk -p"
+.Dl "find . -exec pathchk -p \e{\e} +"
 .Sh SEE ALSO
 .Xr getconf 1 ,
 .Xr pathconf 2 ,



Home | Main Index | Thread Index | Old Index