[Bug 294148] [NEW] move_uploaded_file does not set right permissions (ignores umask)

Hark ubuntu at komkommerkom.com
Wed Nov 5 14:01:01 GMT 2008


Public bug reported:

Binary package hint: php5

After calling move_uploaded_file a file should get permissions according
to the set umask. When /tmp is on the same partition as the file's
destination this doesn't happen, the file gets mode 600 making it
unreadable by Apache.

I think this bug was introduced in an upgrade a few weeks maybe months
ago.

This does remind me very much of an old (resolved) bug in PHP:
http://bugs.php.net/bug.php?id=42291

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
move_uploaded_file does not set right permissions (ignores umask)
https://bugs.launchpad.net/bugs/294148
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list