mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
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.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user