diff options
Diffstat (limited to 'source/smbd/uid.c')
-rw-r--r-- | source/smbd/uid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/uid.c b/source/smbd/uid.c index 8eb34e24063..09f8a4220a3 100644 --- a/source/smbd/uid.c +++ b/source/smbd/uid.c @@ -245,9 +245,9 @@ BOOL become_user(connection_struct *conn, uint16 vuid) if (!(conn && conn->ipc)) { /* groups stuff added by ih/wreu */ if (current_user.ngroups > 0) - if (setgroups(current_user.ngroups, + if (sys_setgroups(current_user.ngroups, current_user.groups)<0) { - DEBUG(0,("setgroups call failed!\n")); + DEBUG(0,("sys_setgroups call failed!\n")); } } #endif @@ -356,9 +356,9 @@ void unbecome_root(BOOL restore_dir) #ifdef HAVE_SETGROUPS if (current_user_saved.ngroups > 0) { - if (setgroups(current_user_saved.ngroups, + if (sys_setgroups(current_user_saved.ngroups, current_user_saved.groups)<0) - DEBUG(0,("ERROR: setgroups call failed!\n")); + DEBUG(0,("ERROR: sys_setgroups call failed!\n")); } #endif |