[SCM] Samba Shared Repository - branch master updated

Björn Jacke bjacke at samba.org
Mon Jun 7 15:16:27 MDT 2010


The branch, master has been updated
       via  711a30a... s3: fix build on platforms without st_blocks and st_blksize stat struct members
      from  99c9e35... ldb:pyldb.c - we cannot use "ldb_dn_compare" if both message DNs are NULL in "py_ldb_msg_compare"

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 711a30aa61bb5f6a9b3970007bad8a70f411fb87
Author: Björn Jacke <bj at sernet.de>
Date:   Mon Jun 7 23:06:28 2010 +0200

    s3: fix build on platforms without st_blocks and st_blksize stat struct members
    
    This fixes bug 7474.

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/system.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/system.c b/source3/lib/system.c
index 5aab441..7859c61 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -534,8 +534,17 @@ static void init_stat_ex_from_stat (struct stat_ex *dst,
 	dst->st_ex_mtime = get_mtimespec(src);
 	dst->st_ex_ctime = get_ctimespec(src);
 	make_create_timespec(src, dst, fake_dir_create_times);
+#ifdef HAVE_STAT_ST_BLKSIZE
 	dst->st_ex_blksize = src->st_blksize;
+#else
+	dst->st_ex_blksize = STAT_ST_BLOCKSIZE;
+#endif
+
+#ifdef HAVE_STAT_ST_BLOCKS
 	dst->st_ex_blocks = src->st_blocks;
+#else
+	dst->st_ex_blocks = src->st_size % STAT_ST_BLOCKSIZE + 1;
+#endif
 
 #ifdef HAVE_STAT_ST_FLAGS
 	dst->st_ex_flags = src->st_flags;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list