diff options
author | Michael Adam <obnox@samba.org> | 2016-04-05 20:01:32 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-05-13 00:16:16 +0200 |
commit | 3776a9cd73115abc9fef31f05f51f25b452ebe43 (patch) | |
tree | 1912d91c441d352921150174a198362f45a38ddf | |
parent | 6bd436fd456ea7c8f7dec17ad8529dd571324ed4 (diff) | |
download | samba-3776a9cd73115abc9fef31f05f51f25b452ebe43.tar.gz |
s3:smbfilter: fix O3 error unused result of system()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
-rw-r--r-- | source3/utils/smbfilter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 906844877f2..5a00a40a516 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -88,6 +88,7 @@ static void filter_request(char *buf, size_t buf_len) int name_len1 = 0; int name_len2; int name_type1, name_type2; + int ret; if (msg_type) { /* it's a netbios special */ @@ -142,7 +143,10 @@ static void filter_request(char *buf, size_t buf_len) x = IVAL(buf,smb_vwv11); d_printf("SMBsesssetupX cap=0x%08x\n", x); d_printf("pwlen=%d/%d\n", SVAL(buf, smb_vwv7), SVAL(buf, smb_vwv8)); - system("mv sessionsetup.dat sessionsetup1.dat"); + ret = system("mv sessionsetup.dat sessionsetup1.dat"); + if (ret == -1) { + DBG_ERR("failed to call mv command\n"); + } save_file("sessionsetup.dat", smb_buf(buf), SVAL(buf, smb_vwv7)); x = (x | CLI_CAPABILITY_SET) & ~CLI_CAPABILITY_MASK; SIVAL(buf, smb_vwv11, x); |