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 Fix error in previous: The first chara...
details: https://anonhg.NetBSD.org/src/rev/c1c331f90045
branches: trunk
changeset: 767242:c1c331f90045
user: apb <apb%NetBSD.org@localhost>
date: Wed Jul 13 07:48:19 2011 +0000
description:
Fix error in previous: The first character of $i should be removed
only if it is '!', but it was removed in the wrong case branch.
diffstat:
usr.bin/locate/locate/updatedb.sh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 680cf91204c3 -r c1c331f90045 usr.bin/locate/locate/updatedb.sh
--- a/usr.bin/locate/locate/updatedb.sh Wed Jul 13 07:34:55 2011 +0000
+++ b/usr.bin/locate/locate/updatedb.sh Wed Jul 13 07:48:19 2011 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: updatedb.sh,v 1.12 2011/07/10 13:42:49 apb Exp $
+# $NetBSD: updatedb.sh,v 1.13 2011/07/13 07:48:19 apb Exp $
#
# Copyright (c) 1989, 1993
# The Regents of the University of California. All rights reserved.
@@ -89,11 +89,12 @@
SRCHPATHS="${SRCHPATHS}${SRCHPATHS:+ }$(shell_quote "$@")";;
ignorefs)
for i in "$@"; do
+ q="$(shell_quote "${i#\!}")"
fs=
case "$i" in
none) ignorefs=;;
- \!*) fs="! -fstype $(shell_quote "$i")";;
- *) fs="-fstype $(shell_quote "${i#?}")";;
+ \!*) fs="! -fstype $q";;
+ *) fs="-fstype $q";;
esac
case "$fs" in
'') ;;
Home |
Main Index |
Thread Index |
Old Index