|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-25 08:41 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ When safe_mode is enabled function chmod takes off sticky bit from directory. It should ignore sticky bit, but it changes. Function mkdir does ok, creates directory and takes SGID from parent directory but chmod removes SGID from this new directory in safe_mode enabled. Is there any solution to change directory permission without changing sticky bit when safe_mode enabled? Parent directory permission: drwxrwsrwx 3 12123 9549 4096 2006-04-25 08:34 . mkdir('./directory',02775); Subdirectory after mkdir: drwxrwsr-x 2 www 9549 4096 2006-04-25 08:56 chmod('./directory',02777); Subdirectory after chmod: drwxrwxrwx 2 www 9549 4096 2006-04-25 08:57 directory