svn commit: samba r5825 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Wed Mar 16 02:11:49 GMT 2005


Author: jra
Date: 2005-03-16 02:11:44 +0000 (Wed, 16 Mar 2005)
New Revision: 5825

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5825

Log:
Fix one more DISK_FREE call - spotted by Ying Li <ying.li2 at hp.com>.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/vfs.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/vfs.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/vfs.c	2005-03-16 02:11:44 UTC (rev 5824)
+++ branches/SAMBA_3_0/source/smbd/vfs.c	2005-03-16 02:11:44 UTC (rev 5825)
@@ -552,6 +552,9 @@
 	len -= st.st_size;
 	len /= 1024; /* Len is now number of 1k blocks needed. */
 	space_avail = SMB_VFS_DISK_FREE(conn,fsp->fsp_name,False,&bsize,&dfree,&dsize);
+	if (space_avail == (SMB_BIG_UINT)-1) {
+		return -1;
+	}
 
 	DEBUG(10,("vfs_allocate_file_space: file %s, grow. Current size %.0f, needed blocks = %.0f, space avail = %.0f\n",
 			fsp->fsp_name, (double)st.st_size, (double)len, (double)space_avail ));



More information about the samba-cvs mailing list