summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcmdutils/common/process_xattrs.c
diff options
context:
space:
mode:
authormarks <none@none>2008-01-24 14:02:00 -0800
committermarks <none@none>2008-01-24 14:02:00 -0800
commit575bd8a230f2c20b1878ebb473c30a12f0eb1b2e (patch)
tree5ae2b288d66bd9a77e926d52369068691a2553c1 /usr/src/lib/libcmdutils/common/process_xattrs.c
parent2f79bea12c9814c8829dad82312f3c944423bcce (diff)
downloadillumos-gate-575bd8a230f2c20b1878ebb473c30a12f0eb1b2e.tar.gz
6653731 getattrat() needs a little cleanup
Diffstat (limited to 'usr/src/lib/libcmdutils/common/process_xattrs.c')
-rw-r--r--usr/src/lib/libcmdutils/common/process_xattrs.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr/src/lib/libcmdutils/common/process_xattrs.c b/usr/src/lib/libcmdutils/common/process_xattrs.c
index 5c8df946a1..e6a5c1f7c7 100644
--- a/usr/src/lib/libcmdutils/common/process_xattrs.c
+++ b/usr/src/lib/libcmdutils/common/process_xattrs.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -280,17 +280,10 @@ sysattr_list(char *cmd, int fd, char *fname)
f_attr_t fattr;
char *name;
- if (nvlist_alloc(&response, NV_UNIQUE_NAME, 0) != 0) {
- (void) fprintf(stderr, dgettext(TEXT_DOMAIN,
- "%s: %s: nvlist_alloc failed\n"),
- cmd, fname);
- return (NULL);
- }
if (fgetattr(fd, XATTR_VIEW_READWRITE, &response) != 0) {
(void) fprintf(stderr, dgettext(TEXT_DOMAIN,
"%s: %s: fgetattr failed\n"),
cmd, fname);
- nvlist_free(response);
return (NULL);
}
pair = NULL;