summaryrefslogtreecommitdiff
path: root/source3/utils/smbget.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/smbget.c')
-rw-r--r--source3/utils/smbget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c
index 1dd8d775747..417ed844357 100644
--- a/source3/utils/smbget.c
+++ b/source3/utils/smbget.c
@@ -585,6 +585,8 @@ static bool smb_download_file(const char *base, const char *name,
readbuf = (char *)SMB_MALLOC(opt.blocksize);
if (!readbuf) {
+ fprintf(stderr, "Failed to allocate %zu bytes for read "
+ "buffer (%s)", opt.blocksize, strerror(errno));
if (localhandle != STDOUT_FILENO) {
close(localhandle);
}