com php-src: fix ACLs setup for tests: ext/standard/tests/file/ windows_acls/common.inc
| From: | Anatol Belski | Date: | Mon, 05 Jan 2015 18:14:44 +0000 |
| Subject: | com php-src: fix ACLs setup for tests: ext/standard/tests/file/ windows_acls/common.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83999@lists.php.net to get a copy of this message | ||
Commit: 923394c5096480181174d511309328318aaf97ae
Author: Anatol Belski <ab@php.net> Mon, 5 Jan 2015 19:14:12 +0100
Parents: e7cdf9df7c5069c3561b24efaa327679d80d0e29
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=923394c5096480181174d511309328318aaf97ae
Log:
fix ACLs setup for tests
Changed paths:
M ext/standard/tests/file/windows_acls/common.inc
Diff:
diff --git a/ext/standard/tests/file/windows_acls/common.inc
b/ext/standard/tests/file/windows_acls/common.inc
index 26fadf3..10edfe4 100644
--- a/ext/standard/tests/file/windows_acls/common.inc
+++ b/ext/standard/tests/file/windows_acls/common.inc
@@ -52,8 +52,8 @@ function fix_acls() {
all the other users having acls on the files must loose them.
The following fixes this just partially, as dynamically reading
all the users having acls on a file could be sophisticated. */
- exec(get_icacls() . ' . /setowner $user /T /L /Q 2> nul');
- exec(get_icacls() . ' . /remove:g Administrators /T /L /Q 2> nul');
+ exec(get_icacls() . ' ' . __DIR__ . ' /setowner ' . escapeshellarg($user) .
' /T /L /Q /C > nul 2>&1');
+ exec(get_icacls() . ' ' . __DIR__ . ' /remove:g Administrators /T /L /Q /C > nul
2>&1');
}
function icacls_set($path, $mode, $perm) {