summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Telka <marcel.telka@nexenta.com>2014-01-11 01:46:24 +0100
committerDan McDonald <danmcd@omniti.com>2014-01-15 06:36:23 -0500
commit023efabbe28d70d797973d99bf36d5552c2a8cb8 (patch)
treed87fd6fae6774e42591bfbe571a2cc302ea00870
parent84615402a46a91be66843bd64e4fb72642b06e9d (diff)
downloadillumos-joyent-023efabbe28d70d797973d99bf36d5552c2a8cb8.tar.gz
4195 snoop(1m) should print NFS_ACL mask in hex
Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Sebastien Roy <sebastien.roy@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r--usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs_acl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs_acl.c b/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs_acl.c
index 937d7a08eb..4883ed5e23 100644
--- a/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs_acl.c
+++ b/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs_acl.c
@@ -22,6 +22,9 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
+ */
#include <sys/types.h>
#include <sys/errno.h>
@@ -211,7 +214,7 @@ interpret_nfs_acl2(int flags, int type, int xid, int vers, int proc,
case ACLPROC2_GETACL:
fh = sum_nfsfh();
mask = getxdr_u_long();
- (void) sprintf(line, "%s mask=%lu", fh, mask);
+ (void) sprintf(line, "%s mask=0x%lx", fh, mask);
break;
case ACLPROC2_SETACL:
(void) sprintf(line, sum_nfsfh());
@@ -305,7 +308,7 @@ interpret_nfs_acl3(int flags, int type, int xid, int vers, int proc,
case ACLPROC3_GETACL:
fh = sum_nfsfh3();
mask = getxdr_u_long();
- (void) sprintf(line, "%s mask=%lu", fh, mask);
+ (void) sprintf(line, "%s mask=0x%lx", fh, mask);
break;
case ACLPROC3_SETACL:
(void) sprintf(line, sum_nfsfh3());
@@ -380,7 +383,7 @@ interpret_nfs_acl4(int flags, int type, int xid, int vers, int proc,
case ACLPROC4_GETACL:
fh = sum_nfsfh3();
mask = getxdr_u_long();
- (void) sprintf(line, "%s mask=%lu", fh, mask);
+ (void) sprintf(line, "%s mask=0x%lx", fh, mask);
break;
case ACLPROC4_SETACL:
(void) sprintf(line, sum_nfsfh3());