Skip to content

Commit 45ea188

Browse files
committed
Fix bug #74357: lchown fails to change ownership of symlink with ZTS
1 parent 8fe7930 commit 45ea188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_virtual_cwd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode) /* {{{ */
13841384
int ret;
13851385

13861386
CWD_STATE_COPY(&new_state, &CWDG(cwd));
1387-
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
1387+
if (virtual_file_ex(&new_state, filename, NULL, link ? CWD_EXPAND : CWD_REALPATH)) {
13881388
CWD_STATE_FREE_ERR(&new_state);
13891389
return -1;
13901390
}

0 commit comments

Comments
 (0)