diff -Naur findutils-4.2.20/findutils.cron findutils-new/findutils.cron --- findutils-4.2.20/findutils.cron 1969-12-31 19:00:00.000000000 -0500 +++ findutils-new/findutils.cron 2005-07-20 00:44:54.000000000 -0400 @@ -0,0 +1,11 @@ +#!/bin/sh + +. @PREFIX@/etc/updatedb.conf + +test "x$STATUS" = "xon" || exit 0 +perl -e 'exit (!-e "@PREFIX@/var/locatedb" || -M "@PREFIX@/var/locatedb" > $ARGV[0] - 1)' $DAYS && exit 0 + +test -x @PREFIX@/bin/updatedb || exit 0 +cd / && @PREFIX@/bin/updatedb + +exit 0 diff -Naur findutils-4.2.20/gnulib/lib/regex.c findutils-new/gnulib/lib/regex.c --- findutils-4.2.20/gnulib/lib/regex.c 2005-01-24 12:10:02.000000000 -0500 +++ findutils-new/gnulib/lib/regex.c 2005-07-20 00:43:33.000000000 -0400 @@ -7963,7 +7963,7 @@ /* POSIX.2 functions. Don't define these for Emacs. */ -#ifndef emacs +#if !defined(emacs) && !defined(FINK) /* regcomp takes a regular expression as a string and compiles it. diff -Naur findutils-4.2.20/lib/listfile.c findutils-new/lib/listfile.c --- findutils-4.2.20/lib/listfile.c 2004-11-01 04:13:38.000000000 -0500 +++ findutils-new/lib/listfile.c 2005-07-20 00:43:33.000000000 -0400 @@ -89,10 +89,6 @@ #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) #endif -#if defined(S_ISLNK) -int readlink (); -#endif - /* Get or fake the disk device blocksize. Usually defined by sys/param.h (if at all). */ #ifndef DEV_BSIZE diff -Naur findutils-4.2.20/locate/updatedb.sh findutils-new/locate/updatedb.sh --- findutils-4.2.20/locate/updatedb.sh 2005-01-24 11:12:35.000000000 -0500 +++ findutils-new/locate/updatedb.sh 2005-07-20 00:43:33.000000000 -0400 @@ -143,7 +143,7 @@ PATH=/bin:/usr/bin:${BINDIR}; export PATH -: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"} +: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs afpfs fdesc volfs"} if test -n "$PRUNEFS"; then prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' \ diff -Naur findutils-4.2.20/updatedb.conf findutils-new/updatedb.conf --- findutils-4.2.20/updatedb.conf 1969-12-31 19:00:00.000000000 -0500 +++ findutils-new/updatedb.conf 2005-07-20 00:50:03.000000000 -0400 @@ -0,0 +1,10 @@ +### +# This file allows you to schedule when the locate DB should be updated. +# +# STATUS: If this is not 'on', then the locate DB will never be updated. +# +# DAYS: This specifies the period in days between updates. So if DAYS=7, +# then the DB will be updated every week +### +DAYS=1 +STATUS=on