Closed GoogleCodeExporter closed 8 years ago
It shouldn't.
$profileMask is used for directories and files, which must be accessed both
rtorrent and web-server users.
Original comment by novik65
on 6 Sep 2013 at 5:50
OK, maybe don't use $profileMask, but the permissions for new directories
should be configurable.
Original comment by james.sl...@gmail.com
on 6 Sep 2013 at 10:12
Of course it is configurable.
man umask
Original comment by novik65
on 6 Sep 2013 at 11:38
$ grep ^umask /etc/profile
umask 022
Apache's umask is set to 022, but directories created by automove still have
0777 permissions.
automove calls plugins/automove/util_rt.php: rtOpFiles when moving a directory,
inside function rtOpFiles a function rtMkDir gets called like so: rtMkDir(
dirname( $dst ), 0777 )
Eventually php's "mkdir" function is called in php/util.php like so:
@mkdir($dir,$perms,true);
where perms is always set to 0777.
Original comment by james.sl...@gmail.com
on 6 Sep 2013 at 12:18
>grep ^umask /etc/profile
1) profile of which user?
2) Anyway, try to search umask in the *rtorrent* man. For example, here -
http://libtorrent.rakshasa.no/wiki/RTorrentMan
>where perms is always set to 0777.
This hasn't relation to the question. Because
real_mode = requested_mode & ~umask
Original comment by novik65
on 6 Sep 2013 at 2:28
My umask is unchanged from the default 022,
If you check the source for the makeDirectory function in php/util.php. Notice
the `umask(0)` before the calls to `mkdir($dir, $perms, true);`
Original comment by james.sl...@gmail.com
on 6 Sep 2013 at 3:51
You are right. For unknown reason author of plugin use makeDirectory call
instead mkdir. Fixed.
Original comment by novik65
on 7 Sep 2013 at 7:42
Original issue reported on code.google.com by
james.sl...@gmail.com
on 5 Sep 2013 at 11:08Attachments: