Doc #79136 [NEW]: ssh2_sftp_mkdir affected by umask
| From: | boris at brdaric dot com | Date: | Fri, 17 Jan 2020 10:27:43 +0000 |
| Subject: | Doc #79136 [NEW]: ssh2_sftp_mkdir affected by umask | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17207@lists.php.net to get a copy of this message | ||
From: boris at brdaric dot com
Operating system: Debian Linux
PHP version: Irrelevant
Package: ssh2
Bug Type: Documentation Problem
Bug description:ssh2_sftp_mkdir affected by umask
Description:
------------
---
From manual page: https://php.net/function.ssh2-sftp-chmod
---
Please confirm and note/document that permissions for directory created
using this function are affected by system umask setting.
Test script:
---------------
/* Create directory */
ssh2_sftp_mkdir($sftp, '/home/site',0774);
# If system umask default is 022, as it's default on most Linux
distributions
# you will end up with directory that has permission 754
# If you really want permissions set to 0774, you have to use
ssh2_sftp_chmod
/* Make sure proper permissions are set */
ssh2_sftp_chmod($sftp, '/home/site',0774);
--
Edit bug report at https://bugs.php.net/bug.php?id=79136&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79136&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79136&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79136&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79136&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79136&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79136&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79136&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79136&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79136&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79136&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79136&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79136&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79136&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79136&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79136&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79136&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79136&r=mysqlcfg