Index: lib/libalpm/util.c =================================================================== RCS file: /home/cvs-pacman/pacman-lib/lib/libalpm/util.c,v retrieving revision 1.52 diff -u -r1.52 util.c --- lib/libalpm/util.c 30 Mar 2007 04:46:17 -0000 1.52 +++ lib/libalpm/util.c 24 Apr 2007 19:45:49 -0000 @@ -570,12 +570,15 @@ return(-1); } - while ((mnt = getmntent(fp))) + while((mnt = getmntent(fp))) { struct statvfs64 buf; - statvfs64(mnt->mnt_dir, &buf); - ret += buf.f_bavail * buf.f_bsize; + if(strcmp(mnt->mnt_type, "samba") + || strcmp(mnt->mnt_type, "nfs")) { + statvfs64(mnt->mnt_dir, &buf); + ret += buf.f_bavail * buf.f_bsize; + } } endmntent(fp);