Project

General

Profile

Actions

Bug #39023

closed

octdec() for mkdir() wrappers?

Added by Garvin Hicking about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Priority:
Won't have this time
Assignee:
-
Category:
-
Target version:
Start date:
2012-07-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We are running a TYPO3 4.7.1 instance on a NFS-loadbalanced machine. Due to NFS, the mounted permissions are a bit "wacky", because everything remotely is mounted as nobody/nogroup with full read/write permissions.

However, TYPO3 tries to employ a permission bitmask, which often yielded a "cannot create directory" for us, even though the directory was created (but the bitmask cannot be applied).

When checking t3lib/class.t3lib/class.t3lib_div.php, I noticed that the configured $GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask'] variables (and related ones) get passed to octdec() before getting to the PHP mkdir/chmod function. According to the PHP manual, those functions require oct input, not dec.

Why is this used? We removed all occurrences of the octdec() function, so that the actual bitmask (0777 / 0666) is passed, and this seems to work.

Actions

Also available in: Atom PDF