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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user