mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
The f_fsid field is not always an integer type. Don't set it in that case.
This commit is contained in:
@ -441,9 +441,14 @@ SMBC_fstatvfs_ctx(SMBCCTX *context,
|
||||
(fsfilcnt_t) total_file_nodes;
|
||||
st->f_ffree =
|
||||
(fsfilcnt_t) free_file_nodes;
|
||||
#if HAVE_FSID_INT
|
||||
st->f_fsid =
|
||||
(unsigned long) fs_identifier;
|
||||
|
||||
#else
|
||||
#warning "f_fsid is not an integer type so is not available"
|
||||
/* We don't know the type, so don't try to set it */
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user