[TYPO3-core] RFC #11433: touch(): Utime failed in install tool

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Sep 29 15:10:51 CEST 2009


Steffen Gebert schrieb:
> On Tue, 29 Sep 2009 13:46:01 +0200, Frans Saris <franssaris at gmail.com>
> wrote:
> 
>> still wrong variable name: $enableInstallTool => $enableInstallToolFile
> 
> grml.. not my day today, really not :D
> 
> Attached v4.
> 
> This time I checked weather modification time is really updated (and
> works - if file created by web server user).
> 
> Thanks for your patience ;)

I like the idea of solving this, as we also have this "problem" from
time to time, and it is just annoying.

But the fix is not correct, because checking for "is_writeable" is not
really interesting for touching a file. You can only touch a file that
you own (or if you are root), so even if the file is "world writeable"
it is still not toucheable if it is owned by root (or by the FTP user).

So the most simply solution would be to ignore the warning with "@".
Alternative would be not to touch, but to use
"fclose(fopen($enableInstallToolFile, 'a'));" to modify the mtime of the
file without using touch.

And if this was not possible (not-writeable), react with some more nice
message (maybe at the bottom of each install tool screen) informing that
the ENABLE-file could not be touched and that this means the install
tool will "shut down in 53 minutes" if the file is not manually touched
externally again.

What do you think?

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list