summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-18 00:30:28 +0000
committerJeremy Allison <jra@samba.org>1998-09-18 00:30:28 +0000
commit14c134e8316687aa5a4ee089c2acfa6428faceae (patch)
tree5abd5941e656acae1df707675df09f77169fbc57 /source/lib
parentc22c40f0caa7d6a9e8120e6415fa728db708db3e (diff)
downloadsamba-14c134e8316687aa5a4ee089c2acfa6428faceae.tar.gz
samba-14c134e8316687aa5a4ee089c2acfa6428faceae.tar.xz
samba-14c134e8316687aa5a4ee089c2acfa6428faceae.zip
include/includes.h:
lib/system.c: Can't assume every system has a statvfs varient. Return -1 for those that don't. smbd/reply.c: Fixed printf warning. Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index 18e84d66f05..52be504c528 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -186,8 +186,10 @@ int sys_statvfs( const char *path, SMB_STRUCT_STATVFS *fsd)
{
#if defined(STAT_STATVFS64)
return statvfs64(path, fsd);
-#else
+#elif defined(STAT_STATVFS)
return statvfs(path, fsd);
+#else
+ return -1;
#endif
}