tony2001 Fri Feb 23 16:21:31 2007 UTC Modified files: /php-src/ext/standard file.c Log: fix #40606 (umask is not being restored when request is finished) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.484&r2=1.485&diff_format=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.484 php-src/ext/standard/file.c:1.485 --- php-src/ext/standard/file.c:1.484 Tue Feb 13 12:56:10 2007 +++ php-src/ext/standard/file.c Fri Feb 23 16:21:31 2007 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.484 2007/02/13 12:56:10 tony2001 Exp $ */ +/* $Id: file.c,v 1.485 2007/02/23 16:21:31 tony2001 Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -1581,7 +1581,7 @@ oldumask = umask(077); - if (BG(umask) != -1) { + if (BG(umask) == -1) { BG(umask) = oldumask; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php