[TYPO3-core] RFC: Treat symlinks as executable

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Nov 9 12:21:10 CET 2006


Michael Stucki schrieb:

> Problem:
> There are various places where programs are checked for being executable.
> However, this does not work if the program is just a symlink.

Have you tested it? To test your patch I made my /usr/sbin/sendmail a
symlink to /usr/sbin/sendmail-orig. I was curious because the Install
tool already found it without your patch.

So I tested the is_executable() on two different platforms, and it seems
that this already follows symlinks and checks their executable bit. So I
don't see any reason for us doing that check again.

Maybe the problem is some other safe_mode setting (maybe open_basedir)
which is not allowing the link to be resolved, but then us doing what
PHP couldn't wouldn't work too.

Michael, if you tested it and found an environment where it wouldn't
work without the patch and works with it, go ahead and commit.

Cheers,
Ernesto



More information about the TYPO3-team-core mailing list