Problem storing dos attributes

Beschorner Daniel Daniel.Beschorner at facton.de
Tue Aug 3 16:10:41 GMT 2004


Since we use Samba 3.0.5 on Linux 2.6 with xattr and acl on ext3 I'm no
longer able to set file attributes.

While reading the attributes Samba honours 

	ea support = No /	store dos attributes = No

and maps the unix permissions to attributes as I want it.

But regardless of the settings above Samba always stores the attributes in
the extended attributes.

For consistency I helped me with this:


--- dosmode.c.orig      2004-04-04 09:37:31.000000000 +0200
+++ dosmode.c   2004-08-03 16:08:19.328216160 +0200
@@ -224,6 +224,10 @@
        files_struct *fsp = NULL;
        BOOL ret = False;

+       if (!lp_store_dos_attributes(SNUM(conn))) {
+                return False;
+        }
+
        snprintf(attrstr, sizeof(attrstr)-1, "0x%x", dosmode &
SAMBA_ATTRIBUTES_MASK);
        if (SMB_VFS_SETXATTR(conn, path, SAMBA_XATTR_DOS_ATTRIB, attrstr,
strlen(attrstr), 0) == -1) {
                if((errno != EPERM) && (errno != EACCES)) {


Daniel


More information about the samba-technical mailing list