Page MenuHomePhabricator

Make Pywikibot daemon logs unexecutable
Closed, ResolvedPublic

Description

Currently daemonize.py uses the Python default permissions of 0777 when creating daemon logs (requested with the -daemonize:xxx command-line argument). These logs are not script files or other executable files, so having them the executable bit set is unnecessary (and makes it more difficult to find real executables in ls output when executable files are highlighted in color); in extreme cases it may even cause security risks if users are tricked into executing appropriately prepared logs. It should use a more sensitive value, like 0666 or 0644.

Details

Related Changes in Gerrit: