Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/locate/locate locate.updatedb: Add -- to the invocat...
details: https://anonhg.NetBSD.org/src/rev/2e16879797e8
branches: trunk
changeset: 373134:2e16879797e8
user: uwe <uwe%NetBSD.org@localhost>
date: Fri Jan 20 13:07:09 2023 +0000
description:
locate.updatedb: Add -- to the invocation of locate.code
A bigram can start with a dash/minus, don't let getopt misinterpret it
as an option.
>From Hakan Engvall in PR misc/57191
diffstat:
usr.bin/locate/locate/updatedb.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r cdd7ce23f10a -r 2e16879797e8 usr.bin/locate/locate/updatedb.sh
--- a/usr.bin/locate/locate/updatedb.sh Fri Jan 20 10:20:05 2023 +0000
+++ b/usr.bin/locate/locate/updatedb.sh Fri Jan 20 13:07:09 2023 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: updatedb.sh,v 1.17 2020/04/25 10:06:42 simonb Exp $
+# $NetBSD: updatedb.sh,v 1.18 2023/01/20 13:07:09 uwe Exp $
#
# Copyright (c) 1989, 1993
# The Regents of the University of California. All rights reserved.
@@ -216,6 +216,6 @@
echo 'locate: updatedb failed' >&2
exit 1
else
- $LIBDIR/locate.code "$BIGRAMS" <"$FILELIST" >"$FCODES"
+ $LIBDIR/locate.code -- "$BIGRAMS" <"$FILELIST" >"$FCODES"
chmod 644 "$FCODES"
fi
Home |
Main Index |
Thread Index |
Old Index