From 97d5bb2bf38191b8b16043f5f3ec458f51ae45f0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 5 Sep 2007 03:07:40 +0000 Subject: [PATCH] Disabled the attribute name checks for "name", "size", and "last_modified" for the time being. BeOS allows creating and reading attributes with those names. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22180 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Attribute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Attribute.cpp b/src/add-ons/kernel/file_systems/bfs/Attribute.cpp index 58edeaab9c..69b35da011 100644 --- a/src/add-ons/kernel/file_systems/bfs/Attribute.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Attribute.cpp @@ -61,9 +61,9 @@ Attribute::CheckAccess(const char *name, int openMode) // ToDo: we might think about allowing to update those values, but // really change their corresponding values in the bfs_inode structure if (name[0] == FILE_NAME_NAME && name[1] == '\0' - || !strcmp(name, "name") +/* || !strcmp(name, "name") || !strcmp(name, "last_modified") - || !strcmp(name, "size")) + || !strcmp(name, "size")*/) RETURN_ERROR(B_NOT_ALLOWED); return fInode->CheckPermissions(openModeToAccess(openMode)