aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2009-05-05 21:30:51 +0000
committerfuzzyray <fuzzyray@gentoo.org>2009-05-05 21:30:51 +0000
commitf21ebd31531cd152e55ad7b37478ba73f047fb74 (patch)
tree3d3ee533a704b949ece7024d37d9722062a5c453 /src
parentMerge changes from trunk in prep for making trunk ready for version 0.3 (diff)
downloadgentoolkit-f21ebd31531cd152e55ad7b37478ba73f047fb74.tar.gz
gentoolkit-f21ebd31531cd152e55ad7b37478ba73f047fb74.tar.bz2
gentoolkit-f21ebd31531cd152e55ad7b37478ba73f047fb74.zip
Add patch from kojiro to remove permission check on temporary directory. (Bug 203414)
svn path=/branches/gentoolkit-0.2.4/; revision=602
Diffstat (limited to 'src')
-rwxr-xr-xsrc/revdep-rebuild/revdep-rebuild9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/revdep-rebuild/revdep-rebuild b/src/revdep-rebuild/revdep-rebuild
index 72efba0..b44dadc 100755
--- a/src/revdep-rebuild/revdep-rebuild
+++ b/src/revdep-rebuild/revdep-rebuild
@@ -507,16 +507,9 @@ setup_rm() {
# $1 - directory name
# $2 - user name
verify_tmpdir() {
- umask 007 || die $? "Unable to set umask 007"
if [[ ! $1 ]]; then
die 1 'Temporary file path is unset! (This is a bug.)'
elif [[ -d $1 ]]; then
- # HACK: I hate using find this way
- if [[ $(find "$1" -type d ! \( -user $2 -perm -0700 \) ) ]]; then
- eerror "Incorrect permissions on $1"
- eerror "or at least one file in $1."
- die 1 "Please make sure it's not a symlink and then remove it."
- fi
cd "$1"
else
die 1 "Unable to find a satisfactory location for temporary files ($1)"
@@ -536,7 +529,7 @@ get_search_env() {
fi
# From here on all work is done inside the temporary directory
- verify_tmpdir "$tmp_target" "$uid"
+ verify_tmpdir "$tmp_target"
WORKING_DIR="$tmp_target"
if [[ $SEARCH_BROKEN ]]; then