[TYPO3-core] RFC: Treat symlinks as executable

Michael Stucki michael at typo3.org
Tue Nov 7 12:51:44 CET 2006


Hi Martin,

technically I agree with your solution, but practically this is just a 
slowdown of the process, isn't it?

- michael

Am Dienstag, 7. November 2006 12:29 schrieb Martin Kutschker:
> Michael Stucki schrieb:
> > This is a SVN patch request.
> >
> > Problem:
> > There are various places where programs are checked for being executable.
> > However, this does not work if the program is just a symlink.
> >
> > This is usually needed in larger hosting environments when
> > safe_mode_exec_dir is used and allowed programs are placed in a special
> > directory. Currently they would all need to be copied, hence they won't
> > be upgraded automatically by the systems package manager.
> >
> > Solution:
> > If is_executable() is false, check using is_link() and accept this as
> > well.
>
> No use readlink() to resolve the target first:
>
> @is_executable($path.$cmd)
>
> (@is_link($path.$cmd) && @is_executable(readlink($path.$cmd))
>
> Masi
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20061107/33e2776a/attachment.pgp 


More information about the TYPO3-team-core mailing list