diff options
author | Trever L. Adams <trever.adams@gmail.com> | 2016-10-12 09:55:15 -0600 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-10-13 04:26:26 +0200 |
commit | 7accec7f78f40849b50ad291fb56b04f3fd39dc2 (patch) | |
tree | 386652bfc0ab139d7e6e624bac9146b5827faf56 /source3/groupdb | |
parent | 2a245512b8146e1e726186dd460a85eb5c665969 (diff) | |
download | samba-7accec7f78f40849b50ad291fb56b04f3fd39dc2.tar.gz |
Update smbrun to allow for settings environment variables.
Signed-off-by: Trever L. Adams <trever.adams@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 13 04:26:26 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 4db53ab5eb0..ac70fe68c48 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -227,7 +227,7 @@ int smb_create_group(const char *unix_group, gid_t *new_gid) return -1; } - ret = smbrun(add_script, &fd); + ret = smbrun(add_script, &fd, NULL); DEBUG(ret ? 0 : 3,("smb_create_group: Running the command `%s' gave %d\n",add_script,ret)); if (ret == 0) { smb_nscd_flush_group_cache(); @@ -282,7 +282,7 @@ int smb_delete_group(const char *unix_group) if (!del_script) { return -1; } - ret = smbrun(del_script,NULL); + ret = smbrun(del_script, NULL, NULL); DEBUG(ret ? 0 : 3,("smb_delete_group: Running the command `%s' gave %d\n",del_script,ret)); if (ret == 0) { smb_nscd_flush_group_cache(); @@ -322,7 +322,7 @@ int smb_set_primary_group(const char *unix_group, const char* unix_user) if (!add_script) { return -1; } - ret = smbrun(add_script,NULL); + ret = smbrun(add_script, NULL, NULL); flush_pwnam_cache(); DEBUG(ret ? 0 : 3,("smb_set_primary_group: " "Running the command `%s' gave %d\n",add_script,ret)); @@ -364,7 +364,7 @@ int smb_add_user_group(const char *unix_group, const char *unix_user) if (!add_script) { return -1; } - ret = smbrun(add_script,NULL); + ret = smbrun(add_script, NULL, NULL); DEBUG(ret ? 0 : 3,("smb_add_user_group: Running the command `%s' gave %d\n",add_script,ret)); if (ret == 0) { smb_nscd_flush_group_cache(); @@ -404,7 +404,7 @@ int smb_delete_user_group(const char *unix_group, const char *unix_user) if (!del_script) { return -1; } - ret = smbrun(del_script,NULL); + ret = smbrun(del_script, NULL, NULL); DEBUG(ret ? 0 : 3,("smb_delete_user_group: Running the command `%s' gave %d\n",del_script,ret)); if (ret == 0) { smb_nscd_flush_group_cache(); |