summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-02-23 16:22:20 +0000
committerAntony Dovgal <tony2001@php.net>2007-02-23 16:22:20 +0000
commitf3a9413b287e9adee449f035612a730f57c5a805 (patch)
tree38d43dd66a8f1d15f7a636d9f7a15d62018b1f4b /ext
parentdb19c74cfee66cb89cfab856bdcaba334f96fcf7 (diff)
downloadphp-git-f3a9413b287e9adee449f035612a730f57c5a805.tar.gz
MFH: fix #40606 (umask is not being restored when request is finished)
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 5d2bd6f2ae..993842e17a 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1488,7 +1488,7 @@ PHP_FUNCTION(umask)
oldumask = umask(077);
- if (BG(umask) != -1) {
+ if (BG(umask) == -1) {
BG(umask) = oldumask;
}