CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]   2023/05/03 13:45:49

Modified files:
        infrastructure/lib/DPB: User.pm 

Log message:
fix do_as: it requires two scopes
Otherwise, resetting the groups won't work, as we're no longer root.

So, use do_as systematically for anything that changes identity.

(noticed because some User->open operation was returning "Permission denied"
instead of "File does not exist")

While there: fix the "open as dir" case by explicitly setting $! to
EISDIR on top of returning undef.

Reply via email to