From 87cbf08503c4d2f9656ba69a8c4a6d87827502c8 Mon Sep 17 00:00:00 2001 From: perry Date: Sat, 5 Apr 2003 16:46:00 +0000 Subject: [PATCH] Move exit status information to EXIT STATUS section, and note that we exit >0 if errors such as missing or corrupted database files are encountered. --- usr.bin/locate/locate/locate.1 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/usr.bin/locate/locate/locate.1 b/usr.bin/locate/locate/locate.1 index 6749de8ea028..5ed73cfba561 100644 --- a/usr.bin/locate/locate/locate.1 +++ b/usr.bin/locate/locate/locate.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: locate.1,v 1.11 2001/12/01 20:33:02 wiz Exp $ +.\" $NetBSD: locate.1,v 1.12 2003/04/05 16:46:00 perry Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,7 +33,7 @@ .\" .\" @(#)locate.1 8.1 (Berkeley) 6/6/93 .\" -.Dd June 6, 1993 +.Dd April 5, 2003 .Dt LOCATE 1 .Os .Sh NAME @@ -63,9 +63,6 @@ including slashes (``/''). As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''. .Pp -.Nm -exits with a successful status if a match is found. -.Pp Options: .Bl -tag -width flag .It Fl d Ar dbpath @@ -77,6 +74,11 @@ The environment variable .Ar LOCATE_PATH has the same effect. .El +.Sh EXIT STATUS +.Nm +exits with a 0 if a match is found, and >0 if no match is found or if +another problem (such as a missing or corrupted database file) is +encountered. .Sh FILES .Bl -tag -width /usr/libexec/locate.updatedb -compact .It Pa /var/db/locate.database