--- portsnap.orig	2009-08-25 10:20:38.000000000 +0200
+++ portsnap	2009-08-25 10:27:13.000000000 +0200
@@ -1036,6 +1036,10 @@
 # Set LC_ALL in order to avoid problems with character ranges like [A-Z].
 export LC_ALL=C
 
+# Set a standard umask, so directory permissions stays consistent, regardless
+# of which sudo-enabled user is calling portsnap, and his configured umask.
+umask 0022
+
 get_params $@
 for COMMAND in ${COMMANDS}; do
 	cmd_${COMMAND}
