[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1539-g2cac1d3

Volker Lendecke vl at samba.org
Sat Jan 19 23:48:39 GMT 2008


The branch, v3-2-test has been updated
       via  2cac1d3919a96c480f34c93d8b9b07782d46ed23 (commit)
      from  5f5fc72b01c8e8fc096375c7cb4a97186c387259 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 2cac1d3919a96c480f34c93d8b9b07782d46ed23
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Jan 20 00:44:14 2008 +0100

    Some systems do not have XATTR_ defined

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

Summary of changes:
 source/include/includes.h |    8 ++++++++
 source/lib/system.c       |    5 -----
 2 files changed, 8 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/includes.h b/source/include/includes.h
index 7eca8d3..c6d0885 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -1108,6 +1108,14 @@ char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATT
 #define VXFS_QUOTA
 #endif
 
+#ifndef XATTR_CREATE
+#define XATTR_CREATE  0x1       /* set value, fail if attr already exists */
+#endif
+
+#ifndef XATTR_REPLACE
+#define XATTR_REPLACE 0x2       /* set value, fail if attr does not exist */
+#endif
+
 #if defined(HAVE_KRB5)
 
 krb5_error_code smb_krb5_parse_name(krb5_context context,
diff --git a/source/lib/system.c b/source/lib/system.c
index eb6dcae..fa50955 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -1917,11 +1917,6 @@ int sys_fremovexattr (int filedes, const char *name)
 #endif
 }
 
-#if !defined(HAVE_SETXATTR)
-#define XATTR_CREATE  0x1       /* set value, fail if attr already exists */
-#define XATTR_REPLACE 0x2       /* set value, fail if attr does not exist */
-#endif
-
 int sys_setxattr (const char *path, const char *name, const void *value, size_t size, int flags)
 {
 #if defined(HAVE_SETXATTR)


-- 
Samba Shared Repository


More information about the samba-cvs mailing list