Project

General

Profile

Bug #6106

attr_to_xattr_view should return XATTR_VIEW_INVALID when encountering invalid attr

Added by Richard PALO over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-08-08
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

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);
 }

History

#1

Updated by Electric Monk about 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

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>

Also available in: Atom PDF