add a /dev/null test to aid in debugging bug 65876
authorTravis Tilley <lv@gentoo.org>
Thu, 7 Oct 2004 04:33:08 +0000 (04:33 +0000)
committerTravis Tilley <lv@gentoo.org>
Thu, 7 Oct 2004 04:33:08 +0000 (04:33 +0000)
profiles/default-linux/amd64/profile.bashrc

index b3e2cf208f2040f51b6447ca2456c2240a6134de..f0bc6afe459f0c0409173346386f454d04a1a6c1 100644 (file)
@@ -15,6 +15,16 @@ addpredict /usr/lib64/python2.4/
 addpredict /usr/lib64/python2.5/
 addpredict /usr/lib64/python3.0/
 
+# sandbox is disabled for /dev/null by default, so this bug isnt caught.
+# hopefully this will help us figure out where this problem occurs...
+if [ ! -e /dev/null ] ; then
+       eerror "/dev/null doesnt exist! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876"
+       exit 1
+elif [ -f /dev/null ] ; then
+       eerror "/dev/null is a normal file! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876"
+       exit 1
+fi
+
 
 # currently theoretical multilib stuff only available if using portage 2.0.51
 CHOST32="i686-pc-linux-gnu"