[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug in updatedb in findutils 4.1
From: |
John P. Rouillard |
Subject: |
Possible bug in updatedb in findutils 4.1 |
Date: |
Thu, 07 Feb 2002 16:49:06 -0500 |
Hello:
To get the update db to run properly on an NFS mounted filesystem,
(Don't ask me why I would WANT to do a find down an NFS mounted
volume) I had to change the lines:
if test -n "$NETPATHS"; then
su $NETUSER -c
"$find $NETPATHS \\( -type d -regex \"$PRUNEREGEX\" -prune \\) -o -print"
fi
to
if test -n "$NETPATHS"; then
su $NETUSER -c
"$find $NETPATHS \\( -type d -regex '$PRUNEREGEX' -prune \\) -o -print"
fi
Otherwise I got a:
Illegal variable name.
error from the script. I think its coming from the su since the line
expands to:
su rouilj -c find /net/machine/oracle/test \( -type d -regex
"\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/afs$\)" -prune \) -o -print
and I think the $\) is being interprested as a variable reference.
This is on solaris 2.8 with /bin/sh. YMMV.
-- rouilj
John Rouillard
===============================================================================
My employers don't acknowledge my existence much less my opinions.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Possible bug in updatedb in findutils 4.1,
John P. Rouillard <=