◐ Shell
clean mode source ↗

Message 176336 - Python tracker

> The value -1 is used is some functions like chown() (to only change the
user, only the group or none, to check if you are allowed or not). How do
you handle this value?

Yes, there is a special case for -1. Look at the code.