1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-11-01 04:23:51 +03:00

Replace with_privileges function to separate system module

This commit is contained in:
Evgeny Sinelnikov
2021-07-17 02:31:30 +04:00
parent 00abee6f7c
commit cf82fae5ec
3 changed files with 127 additions and 104 deletions

View File

@@ -55,9 +55,9 @@ from util.users import (
is_root,
get_process_user,
username_match_uid,
with_privileges
)
from util.logging import log
from util.system import with_privileges
def determine_username(username=None):