From 7accec7f78f40849b50ad291fb56b04f3fd39dc2 Mon Sep 17 00:00:00 2001 From: "Trever L. Adams" Date: Wed, 12 Oct 2016 09:55:15 -0600 Subject: Update smbrun to allow for settings environment variables. Signed-off-by: Trever L. Adams Reviewed-by: David Disseldorp Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Oct 13 04:26:26 CEST 2016 on sn-devel-144 --- source3/groupdb/mapping.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/groupdb') 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(); -- cgit v1.2.1