Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
ba5c144e
Commit
ba5c144e
authored
Apr 12, 2010
by
drumm
Browse files
#586000
parent
348eb76a
Changes
1
Show whitespace changes
Inline
Side-by-side
file/file.drush.inc
View file @
ba5c144e
...
@@ -141,7 +141,6 @@ class provisionService_file extends provisionService {
...
@@ -141,7 +141,6 @@ class provisionService_file extends provisionService {
$func
=
(
$recursive
)
?
array
(
$this
,
'_chmod_recursive'
)
:
'chmod'
;
$func
=
(
$recursive
)
?
array
(
$this
,
'_chmod_recursive'
)
:
'chmod'
;
if
(
!@
call_user_func
(
$func
,
$path
,
$perms
))
{
if
(
!@
call_user_func
(
$func
,
$path
,
$perms
))
{
$this
->
tokens
[
'@reason'
]
=
dt
(
'chmod to @perm failed on @path'
,
array
(
'@perm'
=>
sprintf
(
'%o'
,
$perms
),
'@path'
=>
$path
));
$this
->
tokens
[
'@reason'
]
=
dt
(
'chmod to @perm failed on @path'
,
array
(
'@perm'
=>
sprintf
(
'%o'
,
$perms
),
'@path'
=>
$path
));
return
false
;
}
}
clearstatcache
();
// this needs to be called, otherwise we get the old info
clearstatcache
();
// this needs to be called, otherwise we get the old info
$this
->
last_status
=
substr
(
sprintf
(
'%o'
,
fileperms
(
$path
)),
-
4
)
==
sprintf
(
'%04o'
,
$perms
);
$this
->
last_status
=
substr
(
sprintf
(
'%o'
,
fileperms
(
$path
)),
-
4
)
==
sprintf
(
'%04o'
,
$perms
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment