CC-3299: Media monitor changes the owner of watched files?

- bug fixed
This commit is contained in:
James 2012-02-06 12:32:21 -05:00
parent 4043f011b5
commit 4b7272a173

View file

@ -75,6 +75,9 @@ class MediaMonitorCommon:
omask = os.umask(0)
if not has_correct_permissions(item, 'www-data', 'www-data'):
uid = pwd.getpwnam('www-data')[2]
gid = grp.getgrnam('www-data')[2]
os.chown(item, uid, gid)
if is_dir is True: