diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-19 08:44:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-19 08:44:56 +0000 |
commit | 763704f78fc44976b2d977e8a08ffdeb727903c4 (patch) | |
tree | d47f8368deb3dd24870e57de156bd71d1e7e8974 | |
parent | e2eacdd74c369fbbcd118148149321e36f3d0010 (diff) | |
download | samba-763704f78fc44976b2d977e8a08ffdeb727903c4.tar.gz samba-763704f78fc44976b2d977e8a08ffdeb727903c4.tar.xz samba-763704f78fc44976b2d977e8a08ffdeb727903c4.zip |
use sys_fsusage() not disk_free() in printing.c
-rw-r--r-- | source/printing/printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index 8fa9d7db251..3202c6937de 100644 --- a/source/printing/printing.c +++ b/source/printing/printing.c @@ -565,9 +565,9 @@ int print_job_start(int snum, char *jobname) /* see if we have sufficient disk space */ if (lp_minprintspace(snum)) { - SMB_BIG_UINT dum1,dum2,dum3; - if (sys_disk_free(path,False,&dum1,&dum2,&dum3) < - (SMB_BIG_UINT)lp_minprintspace(snum)) { + SMB_BIG_UINT dspace, dsize; + if (sys_fsusage(path, &dspace, &dsize) == 0 && + dspace < 2*(SMB_BIG_UINT)lp_minprintspace(snum)) { errno = ENOSPC; return -1; } |