1
0
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:
Derrell Lipman
2009-02-14 12:27:40 -05:00
parent fcb2e8904e
commit 20b5e64659

View File

@ -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
}
}