From patchwork Thu Jun 23 02:26:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Haynes X-Patchwork-Id: 907942 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5N2PtTa022440 for ; Thu, 23 Jun 2011 02:26:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758608Ab1FWC0A (ORCPT ); Wed, 22 Jun 2011 22:26:00 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:36821 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758449Ab1FWC0A (ORCPT ); Wed, 22 Jun 2011 22:26:00 -0400 Received: by gwaa18 with SMTP id a18so561504gwa.19 for ; Wed, 22 Jun 2011 19:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=HggW4n9RW/xHYyJIV5oYA4K5DlDULYS9wBYdQL+Cdks=; b=C2RewJr4JXbbRfmfRp5jsdMSDjB60FGfsr1pnYHh3N14/oOPTMAKSdEPnDwdOZfR0K GxNKDIx83mZJN6r7GRTA76j2+0kfUy6WD6FrsAsHkVdHQxZBqDUyN8Q4iqXCFzMvropQ yzzS4j5Ky57sZtWeJlIWc/HzVZf5QtmnX1VxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=vs6xSD7wYkAafM/mDtRtk9pEi+p8kOEMn6/w0jEjFJEh0lj1BNiznqHURAEfMvnjfn 7iTngHrOFECkdamgcjO9sLZG0VR9UhkqnNNzlzJaKN7eWxdOJ40OG+VN9pN5JUHbr/s/ hfahDLNejcs027UMjX2LuUuW5UqaxdP2EAzh0= Received: by 10.101.141.1 with SMTP id t1mr1536664ann.87.1308795959654; Wed, 22 Jun 2011 19:25:59 -0700 (PDT) Received: from localhost.localdomain (ip68-0-89-31.tu.ok.cox.net [68.0.89.31]) by mx.google.com with ESMTPS id g2sm1113704ano.14.2011.06.22.19.25.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 19:25:58 -0700 (PDT) From: Tom Haynes To: Steve Dickson Cc: linux-nfs@vger.kernel.org, Tom Haynes Subject: [PATCH 2/2] Make the stat command handle leading blank spaces Date: Wed, 22 Jun 2011 21:26:07 -0500 Message-Id: <1308795967-7605-3-git-send-email-tdh@excfb.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1308795967-7605-1-git-send-email-tdh@excfb.com> References: <1308795967-7605-1-git-send-email-tdh@excfb.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 23 Jun 2011 02:26:02 +0000 (UTC) Signed-off-by: Tom Haynes --- general/stat.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/general/stat.c b/general/stat.c index 2ce604e..b9128ae 100644 --- a/general/stat.c +++ b/general/stat.c @@ -52,7 +52,9 @@ getnewch: exit(1); } c = i & 0x7f; - if (c == '\n' || c == '\r' || c == 'r') + if (c == ' ' || c == '\t') + goto getnewch; + else if (c == '\n' || c == '\r' || c == 'r') attfmt = 1; else if (isdigit(c)) fmt = "%lf %*s %lf %*s %lf %*s"; /* BSD fmt */