path: root/tox.ini
diff options
authorPrashanth Pai <>2016-03-18 18:25:36 +0530
committerThiago da Silva <>2016-05-04 07:21:14 -0700
commit3451b86a6927ab7b21ae8e8a0421e4c51597df1d (patch)
tree592999d7b5ca5766435c05a7416465a1def50a59 /tox.ini
parentfddb5d4a918affe7837d523b56e53e33f3ae5408 (diff)
Don't (f)chown when it has no effect
For (f)chown calls which can change both UID and GID at once, -1 is reserved as a sentinel value to indicate "omitted argument" or "do not change". This makes sense when one of the args to (f)chown is -1. When both uid and gid args are -1, it doesn't make sense to call (f)chown as neither is going to be changed. Further, as of today, diskfile doesn't get the information (uid and gid) of the authenticated user from auth middleware. Retained the calls in code for future when such functionality might be added. Change-Id: If8463ae78a32c379d698260879810ed3c207af02 Signed-off-by: Prashanth Pai <> Reviewed-on: Reviewed-by: Thiago da Silva <> Tested-by: Thiago da Silva <>
Diffstat (limited to 'tox.ini')
0 files changed, 0 insertions, 0 deletions