[dev] Fwd: framework/VFS/file.php
Jan Schneider
jan at horde.org
Sun Nov 16 04:33:46 PST 2003
Zitat von Chuck Hagenbuch <chuck at horde.org>:
>
>
> ----- Forwarded message from mike at mrhost.ca -----
> Date: Mon, 20 Oct 2003 21:42:13 -0700
> From: Mike <mike at mrhost.ca>
> Reply-To: Mike <mike at mrhost.ca>
> Subject: framework/VFS/file.php
> To: chuck at horde.org
>
> Chuck, not sure if there is a better place to send this but,
>
> Just a quick note- something I came across.
>
> The VFS_file::changePermissions() function doesn't work as
> expected. You need to convert the octal value to a decimal
> before it's passed to chmod().
>
> so
>
> if (!@chmod($this->_getNativePath($path, $name), octdec($permission))) {
That's not true, chmod() as well as changePermission() expects the parameter
to be an octal value. I changed the comment on changePermission() to make
this clearer.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the dev
mailing list