Author: glen                         Date: Wed May 30 13:27:11 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- do not allow $TMPDIR override socket directory in mktemp (noticed by arekm)

---- Files affected:
SOURCES:
   php-fcgi.init (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SOURCES/php-fcgi.init
diff -u SOURCES/php-fcgi.init:1.15 SOURCES/php-fcgi.init:1.16
--- SOURCES/php-fcgi.init:1.15  Fri Dec 15 15:26:16 2006
+++ SOURCES/php-fcgi.init       Wed May 30 15:27:05 2007
@@ -122,7 +122,7 @@
        # stopping old ones, thus causing almost no downtime during restart
        if [ "$SPAWN_SOCKET" ]; then
                socket="$SPAWN_SOCKET"
-               SPAWN_SOCKET=$(mktemp -p ${SPAWN_SOCKET%/*} 
${SPAWN_SOCKET##*/}.XXXXXX) || exit 1
+               SPAWN_SOCKET=$(TMPDIR= mktemp -p ${SPAWN_SOCKET%/*} 
${SPAWN_SOCKET##*/}.XXXXXX) || exit 1
                [ "$SPAWN_UID" ] && chown $SPAWN_UID $SPAWN_SOCKET
                [ "$SPAWN_GID" ] && chgrp $SPAWN_GID $SPAWN_SOCKET
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-fcgi.init?r1=1.15&r2=1.16&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to