summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2009-02-14 12:27:40 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2009-02-14 12:27:40 -0500
commit20b5e6465938ee81e4d0657f8dd493ff97ec53aa (patch)
treec5791b0ab541f3716e259dfefa654155b499863f /source3
parentfcb2e8904e27c8ab4904d8cd2172adb9081cfa6d (diff)
downloadsamba-20b5e6465938ee81e4d0657f8dd493ff97ec53aa.tar.gz
samba-20b5e6465938ee81e4d0657f8dd493ff97ec53aa.tar.bz2
samba-20b5e6465938ee81e4d0657f8dd493ff97ec53aa.zip
The f_fsid field is not always an integer type. Don't set it in that case.
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/libsmb_stat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c
index 3eec15f6bd..dbe9f374cc 100644
--- a/source3/libsmb/libsmb_stat.c
+++ b/source3/libsmb/libsmb_stat.c
@@ -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
}
}