From patchwork Wed Nov 7 14:51:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 1710991 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 35210DFB7A for ; Wed, 7 Nov 2012 14:52:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752283Ab2KGOwC (ORCPT ); Wed, 7 Nov 2012 09:52:02 -0500 Received: from mail-ye0-f174.google.com ([209.85.213.174]:40051 "EHLO mail-ye0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762Ab2KGOwB (ORCPT ); Wed, 7 Nov 2012 09:52:01 -0500 Received: by mail-ye0-f174.google.com with SMTP id m12so331164yen.19 for ; Wed, 07 Nov 2012 06:52:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=UnMHAevXh4mhdCk3iN3CHigm+e0Mr2N8P6elggqvYqI=; b=giXj9s0k5gpv3vjgrZHhkzt8gTQ5BpfelKzHFmgwjUgtLoZlME5wZmzwz9fmkMFw7o b3xnw7F02mNpEWYFgAaESk8ZAuvTlf7BefpvCWxTn98drDUDITDQQuw0KJpmi3nhr0fL xO260VkCo8F+akTQDUD2F9SxTNw9F7rrL/q7QF/tRBVqgctgb49ce5/vFP+NFDF+DeYi jFKTnI/RdxiqZk7LUlGZCuSYlQGr7pS8ZpAHEn9urhlsuW8xeG21XtEfNMDLjHCB4kvk AW1lwtnl7YZKaVmmSajw7Ewe5Ry+iXxK5CZ0xY3RqO6ZUVqafaC33COi+rTwOWfC4jCo ykMw== Received: by 10.236.155.71 with SMTP id i47mr5019222yhk.72.1352299920620; Wed, 07 Nov 2012 06:52:00 -0800 (PST) Received: from salusa.poochiereds.net (cpe-107-015-110-129.nc.res.rr.com. [107.15.110.129]) by mx.google.com with ESMTPS id z28sm23940607yhh.7.2012.11.07.06.51.58 (version=SSLv3 cipher=OTHER); Wed, 07 Nov 2012 06:51:59 -0800 (PST) From: Jeff Layton To: linux-cifs@vger.kernel.org Cc: shirishpargaonkar@gmail.com Subject: [PATCH 4/3] getcifsacl: fix up printing of REVISION: and CONTROL: fields Date: Wed, 7 Nov 2012 09:51:53 -0500 Message-Id: <1352299913-32624-1-git-send-email-jlayton@samba.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1352289120-29327-1-git-send-email-jlayton@samba.org> References: <1352289120-29327-1-git-send-email-jlayton@samba.org> X-Gm-Message-State: ALoCoQkfiFpmBw6eRWxmQGe/C1E4RgrULtYA6EoskZjq83zZDSOmq7u7RPcUhgP+/fM0LyZjsDTm Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org They need endianness conversion too... Signed-off-by: Jeff Layton --- getcifsacl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getcifsacl.c b/getcifsacl.c index c576fc0..b76c8ec 100644 --- a/getcifsacl.c +++ b/getcifsacl.c @@ -327,8 +327,8 @@ parse_sec_desc(struct cifs_ntsd *pntsd, ssize_t acl_len, int raw) le32toh(pntsd->gsidoffset)); dacloffset = le32toh(pntsd->dacloffset); dacl_ptr = (struct cifs_ctrl_acl *)((char *)pntsd + dacloffset); - printf("REVISION:0x%x\n", pntsd->revision); - printf("CONTROL:0x%x\n", pntsd->type); + printf("REVISION:0x%x\n", le16toh(pntsd->revision)); + printf("CONTROL:0x%x\n", le16toh(pntsd->type)); rc = parse_sid(owner_sid_ptr, end_of_acl, "OWNER", raw); if (rc)