1 |
Author: fuzzyray |
2 |
Date: 2008-07-21 19:00:07 +0000 (Mon, 21 Jul 2008) |
3 |
New Revision: 500 |
4 |
|
5 |
Modified: |
6 |
trunk/src/revdep-rebuild/revdep-rebuild |
7 |
Log: |
8 |
Add second permission check to setup_tmpdir function |
9 |
|
10 |
Modified: trunk/src/revdep-rebuild/revdep-rebuild |
11 |
=================================================================== |
12 |
--- trunk/src/revdep-rebuild/revdep-rebuild 2008-07-21 18:38:34 UTC (rev 499) |
13 |
+++ trunk/src/revdep-rebuild/revdep-rebuild 2008-07-21 19:00:07 UTC (rev 500) |
14 |
@@ -512,6 +512,13 @@ |
15 |
else |
16 |
die 1 "Unable to find or create a satisfactory location for temporary files" |
17 |
fi |
18 |
+ # HACK: I hate using find this way |
19 |
+ # Double check the permissions one last time to be paranoid |
20 |
+ if [[ $(find "$1" -type d ! \( -user $2 -group portage -perm -0700 \) ) ]]; then |
21 |
+ eerror "Incorrect permissions on $1" |
22 |
+ eerror "or at least one file in $1." |
23 |
+ die 1 "Please make sure it's not a symlink and then remove it." |
24 |
+ fi |
25 |
[[ $VERBOSE ]] && einfo "Temporary cache files are located in $PWD" |
26 |
setup_rm |
27 |
} |