Module Name:src
Committed By: martin
Date: Mon Jan 23 13:18:33 UTC 2023
Modified Files:
src/usr.bin/locate/locate [netbsd-10]: updatedb.sh
Log Message:
Pull up following revision(s) (requested by uwe in ticket #58):
usr.bin/locate/locate/updatedb.sh: revision 1.18
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
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.17.6.1 src/usr.bin/locate/locate/updatedb.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/locate/locate/updatedb.sh
diff -u src/usr.bin/locate/locate/updatedb.sh:1.17 src/usr.bin/locate/locate/updatedb.sh:1.17.6.1
--- src/usr.bin/locate/locate/updatedb.sh:1.17 Sat Apr 25 10:06:42 2020
+++ src/usr.bin/locate/locate/updatedb.sh Mon Jan 23 13:18:32 2023
@@ -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.17.6.1 2023/01/23 13:18:32 martin Exp $
#
# Copyright (c) 1989, 1993
# The Regents of the University of California. All rights reserved.
@@ -216,6 +216,6 @@ if [ -z "$BIGRAMS" ]; then
echo 'locate: updatedb failed' >&2
exit 1
else
- $LIBDIR/locate.code "$BIGRAMS" <"$FILELIST" >"$FCODES"
+ $LIBDIR/locate.code -- "$BIGRAMS" <"$FILELIST" >"$FCODES"
chmod 644 "$FCODES"
fi