FreeBSD Bugzilla – Attachment 128896 Details for
Bug 172801
[libexec] [patch] /usr/libexec/locate.updatedb (and therefore locate(1)) does not work inside a jail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 691 bytes, created by
Devin Teske
on 2012-10-16 23:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Devin Teske
Created:
2012-10-16 23:40:01 UTC
Size:
691 bytes
patch
obsolete
>--- /usr/libexec/locate.updatedb.orig 2012-09-28 16:03:47.000000000 -0700 >+++ /usr/libexec/locate.updatedb 2012-09-28 16:07:54.000000000 -0700 >@@ -63,6 +63,7 @@ case X"$FILESYSTEMS" in > X) echo "$0: empty variable FILESYSTEMS"; exit 1;; esac > > # Make a list a paths to exclude in the locate run >+if [ "$(sysctl -n security.jail.jailed)" = "0" ]; then > excludes="! (" or="" > for fstype in $FILESYSTEMS > do >@@ -70,12 +71,14 @@ do > or="-or" > done > excludes="$excludes ) -prune" >+fi > > case X"$PRUNEPATHS" in > X) ;; > *) for path in $PRUNEPATHS > do >- excludes="$excludes -or -path $path -prune" >+ excludes="$excludes $or -path $path -prune" >+ or="-or" > done;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 172801
:
128896
|
128897