diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-16 01:41:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:03 -0500 |
commit | 7dcbde86ae22379b67d0a571c93aa34b2a1311aa (patch) | |
tree | 4502511b1aa3be03c0f7404fe7abcce3fc387e42 /source3/smbd/reply.c | |
parent | 99db77b2b2ce078c1097aaca2631aeee35544f5a (diff) | |
download | samba-7dcbde86ae22379b67d0a571c93aa34b2a1311aa.tar.gz samba-7dcbde86ae22379b67d0a571c93aa34b2a1311aa.tar.bz2 samba-7dcbde86ae22379b67d0a571c93aa34b2a1311aa.zip |
r5822: Actually return an error message if disk_free fails ! Pointed out by Ying Li <ying.li2@hp.com>.
Jeremy.
(This used to be commit b5d31b2caf5c4739607bf57cb7e4e0569b57012b)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 326dafd678..e8ee9ffe92 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -751,7 +751,10 @@ int reply_dskattr(connection_struct *conn, char *inbuf,char *outbuf, int dum_siz SMB_BIG_UINT dfree,dsize,bsize; START_PROFILE(SMBdskattr); - SMB_VFS_DISK_FREE(conn,".",True,&bsize,&dfree,&dsize); + if (SMB_VFS_DISK_FREE(conn,".",True,&bsize,&dfree,&dsize) == (SMB_BIG_UINT)-1) { + END_PROFILE(SMBdskattr); + return(UNIXERROR(ERRHRD,ERRgeneral)); + } outsize = set_message(outbuf,5,0,True); |