FreeBSD Bugzilla – Attachment 128897 Details for
Bug 172801
[libexec] /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]
patch.txt
patch.txt (text/plain), 743 bytes, created by
Devin Teske
on 2013-03-11 19:17:01 UTC
(
hide
)
Description:
patch.txt
Filename:
MIME Type:
Creator:
Devin Teske
Created:
2013-03-11 19:17:01 UTC
Size:
743 bytes
patch
obsolete
>--- /usr/libexec/locate.updatedb.orig 2010-07-18 19:24:42.000000000 -0700 >+++ /usr/libexec/locate.updatedb 2013-03-11 12:12:56.054787039 -0700 >@@ -59,6 +59,7 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; ex > > case X"$SEARCHPATHS" in > X) echo "$0: empty variable SEARCHPATHS"; exit 1;; esac >+if [ "$(sysctl -n security.jail.jailed)" = "0" ]; then > case X"$FILESYSTEMS" in > X) echo "$0: empty variable FILESYSTEMS"; exit 1;; esac > >@@ -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
Working