mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
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
This commit is contained in:
committed by
Jeremy Allison
parent
2a245512b8
commit
7accec7f78
@ -59,7 +59,7 @@ static NTSTATUS shell_snap_check_path(struct vfs_handle_struct *handle,
|
||||
goto err_tmp_free;
|
||||
}
|
||||
|
||||
ret = smbrun(cmd_run, NULL);
|
||||
ret = smbrun(cmd_run, NULL, NULL);
|
||||
if (ret != 0) {
|
||||
DEBUG(0, ("%s failed with %d\n", cmd_run, ret));
|
||||
status = NT_STATUS_NOT_SUPPORTED;
|
||||
@ -116,7 +116,7 @@ static NTSTATUS shell_snap_create(struct vfs_handle_struct *handle,
|
||||
goto err_tmp_free;
|
||||
}
|
||||
|
||||
ret = smbrun(cmd_run, &fd);
|
||||
ret = smbrun(cmd_run, &fd, NULL);
|
||||
talloc_free(cmd_run);
|
||||
if (ret != 0) {
|
||||
if (fd != -1) {
|
||||
@ -178,7 +178,7 @@ static NTSTATUS shell_snap_delete(struct vfs_handle_struct *handle,
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
ret = smbrun(cmd_run, NULL);
|
||||
ret = smbrun(cmd_run, NULL, NULL);
|
||||
talloc_free(cmd_run);
|
||||
if (ret != 0) {
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
|
Reference in New Issue
Block a user