Bug #6106
attr_to_xattr_view should return XATTR_VIEW_INVALID when encountering invalid attr
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-08-08
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
patch says it all
diff --git a/usr/src/common/xattr/xattr_common.c b/usr/src/common/xattr/xattr_common.c index a40cd03..e9b511b 100644 --- a/usr/src/common/xattr/xattr_common.c +++ b/usr/src/common/xattr/xattr_common.c @@ -115,7 +115,7 @@ xattr_view_t attr_to_xattr_view(f_attr_t attr) { if (attr >= F_ATTR_ALL || attr < 0) - return (NULL); + return (XATTR_VIEW_INVALID); return (xattrs[attr].x_xattr_view); }
Updated by Electric Monk over 5 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit 25613c1d425cf3953d010bbbe294d40990b5f45e
commit 25613c1d425cf3953d010bbbe294d40990b5f45e Author: Richard PALO <richard@NetBSD.org> Date: 2015-09-21T18:16:59.000Z 6106 attr_to_xattr_view should return XATTR_VIEW_INVALID when encountering invalid attr Reviewed by: Gary Mills <gary_mills@fastmail.fm> Approved by: Dan McDonald <danmcd@omniti.com>