[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-1817-gdd0506d
Volker Lendecke
vlendec at samba.org
Tue May 26 21:21:28 GMT 2009
The branch, master has been updated
via dd0506d15ddb01b8f6e7b6be604a3445b73db434 (commit)
from 4db54fff13c2dfd1ea307faa32cf1dd34916c924 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit dd0506d15ddb01b8f6e7b6be604a3445b73db434
Author: Volker Lendecke <vl at samba.org>
Date: Tue May 26 22:39:50 2009 +0200
Attempt to fix the build on NetBSD
-----------------------------------------------------------------------
Summary of changes:
source3/include/includes.h | 3 +++
source3/lib/system.c | 6 ++++++
source3/smbd/trans2.c | 6 ------
3 files changed, 9 insertions(+), 6 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/include/includes.h b/source3/include/includes.h
index a2f6048..0d66c1c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -451,6 +451,9 @@ struct stat_ex {
blksize_t st_ex_blksize;
blkcnt_t st_ex_blocks;
+ uint32_t st_ex_flags;
+ uint32_t st_ex_mask;
+
/*
* Add space for VFS internal extensions. The initial user of this
* would be the onefs modules, passing the snapid from the stat calls
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 5158750..d9d3266 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -477,6 +477,12 @@ static void init_stat_ex_from_stat (struct stat_ex *dst,
dst->st_ex_btime = get_create_timespec(src);
dst->st_ex_blksize = src->st_blksize;
dst->st_ex_blocks = src->st_blocks;
+
+#ifdef HAVE_STAT_ST_FLAGS
+ dst->st_ex_flags = src->st_flags;
+#else
+ dst->st_ex_flags = 0;
+#endif
}
/*******************************************************************
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index ef7f617..1d95c20 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3613,7 +3613,6 @@ static const struct {unsigned stat_fflag; unsigned smb_fflag;}
static void map_info2_flags_from_sbuf(const SMB_STRUCT_STAT *psbuf,
uint32 *smb_fflags, uint32 *smb_fmask)
{
-#ifdef HAVE_STAT_ST_FLAGS
int i;
for (i = 0; i < ARRAY_SIZE(info2_flags_map); ++i) {
@@ -3622,7 +3621,6 @@ static void map_info2_flags_from_sbuf(const SMB_STRUCT_STAT *psbuf,
*smb_fflags |= info2_flags_map[i].smb_fflag;
}
}
-#endif /* HAVE_STAT_ST_FLAGS */
}
static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
@@ -3630,7 +3628,6 @@ static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
const uint32 smb_fmask,
int *stat_fflags)
{
-#ifdef HAVE_STAT_ST_FLAGS
uint32 max_fmask = 0;
int i;
@@ -3660,9 +3657,6 @@ static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
}
return True;
-#else
- return False;
-#endif /* HAVE_STAT_ST_FLAGS */
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list