summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-19 21:29:20 +0000
committerJeremy Allison <jra@samba.org>2002-01-19 21:29:20 +0000
commite400bfce39dac2f4ff75184d52965aba6b9848de (patch)
tree644c2369528ff91af0917a4f61105a8143ce02db /source3/smbd
parent95501cf1ba7dbbd2ae5d28bc1e66158d41592c65 (diff)
downloadsamba-e400bfce39dac2f4ff75184d52965aba6b9848de.tar.gz
samba-e400bfce39dac2f4ff75184d52965aba6b9848de.tar.bz2
samba-e400bfce39dac2f4ff75184d52965aba6b9848de.zip
Report write fail in smb_dump.
Jeremy. (This used to be commit 832b9e7838afc0a48932dd0622c7e2f7b7e44a8f)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index b1fcf864e1..48c0053360 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -609,7 +609,9 @@ static void smb_dump(char *name, int type, char *data, ssize_t len)
if (fd != -1 || errno != EEXIST) break;
}
if (fd != -1) {
- write(fd, data, len);
+ ssize_t ret = write(fd, data, len);
+ if (ret != len)
+ DEBUG(0,("smb_dump: problem: write returned %d\n", (int)ret ));
close(fd);
DEBUG(0,("created %s len %d\n", fname, len));
}