]> granicus.if.org Git - php/commitdiff
fix ACLs setup for tests
authorAnatol Belski <ab@php.net>
Mon, 5 Jan 2015 18:14:12 +0000 (19:14 +0100)
committerAnatol Belski <ab@php.net>
Mon, 5 Jan 2015 18:14:44 +0000 (19:14 +0100)
ext/standard/tests/file/windows_acls/common.inc

index 26fadf31fc186d959dc9eb0280ba7c4089673c2e..10edfe4c916244169ccf6229e2876d617384febb 100644 (file)
@@ -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) {