diff options
-rw-r--r-- | source3/utils/smbget.c | 2 |
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); } |