mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
pseudofs: Ignore unsupported commands in vop_setattr.
Users of pseudofs (e.g. lindebugfs), should be able to receive input from command line via commands like "echo 1 > /path/to/file". Currently this fails because sh tries to truncate the file first and vop_setattr returns not supported error for this. This patch simply ignores the error and returns 0 instead. Reviewed by: imp (mentor), asomers Approved by: imp (mentor), asomers MFC after: 1 week Differential Revision: D20451
This commit is contained in:
parent
fd55875350
commit
1e363d64a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348338
@ -967,7 +967,8 @@ pfs_setattr(struct vop_setattr_args *va)
|
|||||||
PFS_TRACE(("%s", pn->pn_name));
|
PFS_TRACE(("%s", pn->pn_name));
|
||||||
pfs_assert_not_owned(pn);
|
pfs_assert_not_owned(pn);
|
||||||
|
|
||||||
PFS_RETURN (EOPNOTSUPP);
|
/* Silently ignore unchangeable attributes. */
|
||||||
|
PFS_RETURN (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user