View | Details | Raw Unified | Return to bug 172801
Collapse All | Expand All

(-)/usr/libexec/locate.updatedb (-1 / +4 lines)
Lines 63-68 case X"$FILESYSTEMS" in Link Here
63
	X) echo "$0: empty variable FILESYSTEMS"; exit 1;; esac
63
	X) echo "$0: empty variable FILESYSTEMS"; exit 1;; esac
64
64
65
# Make a list a paths to exclude in the locate run
65
# Make a list a paths to exclude in the locate run
66
if [ "$(sysctl -n security.jail.jailed)" = "0" ]; then
66
excludes="! (" or=""
67
excludes="! (" or=""
67
for fstype in $FILESYSTEMS
68
for fstype in $FILESYSTEMS
68
do
69
do
Lines 70-81 do Link Here
70
       or="-or"
71
       or="-or"
71
done
72
done
72
excludes="$excludes ) -prune"
73
excludes="$excludes ) -prune"
74
fi
73
75
74
case X"$PRUNEPATHS" in
76
case X"$PRUNEPATHS" in
75
	X) ;;
77
	X) ;;
76
	*) for path in $PRUNEPATHS
78
	*) for path in $PRUNEPATHS
77
           do 
79
           do 
78
		excludes="$excludes -or -path $path -prune"
80
		excludes="$excludes $or -path $path -prune"
81
		or="-or"
79
	   done;;
82
	   done;;
80
esac
83
esac

Return to bug 172801