Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.

Commit

Permalink
restoring user defined permissions, after creating new files
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pordomingo authored and David Pordomingo committed May 25, 2013
1 parent f210dc2 commit 6d4845c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mandango/Mondator/Mondator.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function dumpContainers(array $containers)
if (false === @file_put_contents($tmpFile, $content) || !@rename($tmpFile, $file)) {
throw new \RuntimeException(sprintf('Failed to write the file "%s".', $file));
}
chmod($file, 0644);
@chmod($file, 0666 & ~umask());
}
}
}
Expand Down

0 comments on commit 6d4845c

Please sign in to comment.