smbd: do not disable "store dos attributes" on-the-fly
[ambi/samba.git] / source3 / smbd / dosmode.c
index 099600793203b4de978fde039cc21a5c4c258226..942d2869148f7afb0bca69800a6f8509629e45c5 100644 (file)
@@ -279,18 +279,9 @@ static bool get_ea_dos_attribute(connection_struct *conn,
                                   SAMBA_XATTR_DOS_ATTRIB, attrstr,
                                   sizeof(attrstr));
        if (sizeret == -1) {
-               if (errno == ENOSYS
-#if defined(ENOTSUP)
-                       || errno == ENOTSUP) {
-#else
-                               ) {
-#endif
-                       DEBUG(1,("get_ea_dos_attribute: Cannot get attribute "
-                                "from EA on file %s: Error = %s\n",
-                                smb_fname_str_dbg(smb_fname),
-                                strerror(errno)));
-                       set_store_dos_attributes(SNUM(conn), False);
-               }
+               DBG_INFO("get_ea_dos_attribute: Cannot get attribute "
+                        "from EA on file %s: Error = %s\n",
+                        smb_fname_str_dbg(smb_fname), strerror(errno));
                return False;
        }
 
@@ -422,18 +413,9 @@ static bool set_ea_dos_attribute(connection_struct *conn,
                files_struct *fsp = NULL;
 
                if((errno != EPERM) && (errno != EACCES)) {
-                       if (errno == ENOSYS
-#if defined(ENOTSUP)
-                               || errno == ENOTSUP) {
-#else
-                               ) {
-#endif
-                               DEBUG(1,("set_ea_dos_attributes: Cannot set "
-                                        "attribute EA on file %s: Error = %s\n",
-                                        smb_fname_str_dbg(smb_fname),
-                                        strerror(errno) ));
-                               set_store_dos_attributes(SNUM(conn), False);
-                       }
+                       DBG_INFO("set_ea_dos_attributes: Cannot set "
+                                "attribute EA on file %s: Error = %s\n",
+                                smb_fname_str_dbg(smb_fname), strerror(errno));
                        return false;
                }