From 71d5f66e8679e4c9c67cfe41411b696f5f72733b Mon Sep 17 00:00:00 2001 From: Stephan Wiesand Date: Sun, 17 Apr 2011 23:37:36 +0100 Subject: [PATCH] make afsdump_scan get ACLs right This makes afsdump_scan get the ACLs right on little endian systems. It also corrects and slightly beautifies some output (indentation, cut&paste error for negative ACL label). Reviewed-on: http://gerrit.openafs.org/4494 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 1105d63ddf5a32b9381ff47e8101c3f141366fa6) Change-Id: Iec0fa5bc9673bdce616611f422d74e55b0aa90f1 Reviewed-on: http://gerrit.openafs.org/6292 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/tests/parsevnode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tests/parsevnode.c b/src/tests/parsevnode.c index f259ee5e74..8f09fd1374 100644 --- a/src/tests/parsevnode.c +++ b/src/tests/parsevnode.c @@ -407,17 +407,17 @@ parse_acl(XFILE * X, unsigned char *tag, tagged_field * field, acl = (struct acl_accessList *)(v->acl); n = ntohl(acl->positive); if (n) { - printf("Positive ACL: %d entries\n", n); + printf(" Positive ACL: %d entries\n", n); for (i = 0; i < n; i++) printf(" %9d %s\n", ntohl(acl->entries[i].id), - rights2str(acl->entries[i].rights)); + rights2str(ntohl(acl->entries[i].rights))); } n = ntohl(acl->negative); if (n) { - printf("Positive ACL: %d entries\n", n); + printf(" Negative ACL: %d entries\n", n); for (i = ntohl(acl->positive); i < ntohl(acl->total); i++) printf(" %9d %s\n", ntohl(acl->entries[i].id), - rights2str(acl->entries[i].rights)); + rights2str(ntohl(acl->entries[i].rights))); } } return ReadByte(X, tag); @@ -463,7 +463,7 @@ parse_vdata(XFILE * X, unsigned char *tag, tagged_field * field, return r; symlink_buf[v->size] = 0; if (p->print_flags & DSPRINT_VNODE) - printf("Target: %s\n", symlink_buf); + printf(" Target: %s\n", symlink_buf); } else { /* Call the callback here, because it's non-fatal */ if (p->cb_error)