diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/token_util.c | 4 | ||||
-rw-r--r-- | source3/passdb/pdb_interface.c | 2 | ||||
-rw-r--r-- | source3/torture/cmd_vfs.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index a84bcc1247..4a88a6bb72 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -93,9 +93,9 @@ struct security_token *get_root_nt_token( void ) cache_data, struct security_token); } - if ( !(pw = sys_getpwuid(0)) ) { + if ( !(pw = getpwuid(0)) ) { if ( !(pw = getpwnam("root")) ) { - DEBUG(0,("get_root_nt_token: both sys_getpwuid(0) " + DEBUG(0,("get_root_nt_token: both getpwuid(0) " "and getpwnam(\"root\") failed!\n")); return NULL; } diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 410ea77037..c5fe56c87d 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -1387,7 +1387,7 @@ static bool pdb_default_uid_to_sid(struct pdb_methods *methods, uid_t uid, struct passwd *unix_pw; bool ret; - unix_pw = sys_getpwuid( uid ); + unix_pw = getpwuid( uid ); if ( !unix_pw ) { DEBUG(4,("pdb_default_uid_to_sid: host has no idea of uid " diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 779601a90b..11d19184e4 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -607,7 +607,7 @@ static NTSTATUS cmd_stat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c st = smb_fname->st; TALLOC_FREE(smb_fname); - pwd = sys_getpwuid(st.st_ex_uid); + pwd = getpwuid(st.st_ex_uid); if (pwd != NULL) user = pwd->pw_name; else user = null_string; grp = sys_getgrgid(st.st_ex_gid); @@ -678,7 +678,7 @@ static NTSTATUS cmd_fstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, return NT_STATUS_UNSUCCESSFUL; } - pwd = sys_getpwuid(st.st_ex_uid); + pwd = getpwuid(st.st_ex_uid); if (pwd != NULL) user = pwd->pw_name; else user = null_string; grp = sys_getgrgid(st.st_ex_gid); @@ -747,7 +747,7 @@ static NTSTATUS cmd_lstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, st = smb_fname->st; TALLOC_FREE(smb_fname); - pwd = sys_getpwuid(st.st_ex_uid); + pwd = getpwuid(st.st_ex_uid); if (pwd != NULL) user = pwd->pw_name; else user = null_string; grp = sys_getgrgid(st.st_ex_gid); |