summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-02 04:14:25 +0000
committerTim Potter <tpot@samba.org>2003-11-02 04:14:25 +0000
commit17131bb446e6dac01a71f2001a6304c4ef2cd18c (patch)
treecba9520e8488df7fefc3f0cb6e5ad6ff9a316fb5
parent14c05904b814630d2848481577f8e91843169a70 (diff)
downloadsamba-17131bb446e6dac01a71f2001a6304c4ef2cd18c.tar.gz
samba-17131bb446e6dac01a71f2001a6304c4ef2cd18c.tar.bz2
samba-17131bb446e6dac01a71f2001a6304c4ef2cd18c.zip
Whoops - missed a place where HAVE_STAT_ST_{BLOCKS,BLOCKSIZE} guards
should be present. (This used to be commit 08aa3f712c193aac5ad3d30e720c218c642738c0)
-rw-r--r--source3/smbwrapper/smbw_stat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw_stat.c b/source3/smbwrapper/smbw_stat.c
index 6c476a8a67..bb76ef006a 100644
--- a/source3/smbwrapper/smbw_stat.c
+++ b/source3/smbwrapper/smbw_stat.c
@@ -41,8 +41,12 @@ void smbw_setup_stat(struct stat *st, char *fname, size_t size, int mode)
if (!IS_DOS_READONLY(mode)) st->st_mode |= S_IWUSR;
st->st_size = size;
+#ifdef HAVE_STAT_ST_BLKSIZE
st->st_blksize = 512;
+#endif
+#ifdef HAVE_STAT_ST_BLOCKS
st->st_blocks = (size+511)/512;
+#endif
st->st_uid = getuid();
st->st_gid = getgid();
if (IS_DOS_DIR(mode)) {