From patchwork Fri Jan 17 16:23:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 3506211 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1D8C79F2E9 for ; Fri, 17 Jan 2014 16:21:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F7AF20165 for ; Fri, 17 Jan 2014 16:21:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7043620131 for ; Fri, 17 Jan 2014 16:21:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbaAQQVZ (ORCPT ); Fri, 17 Jan 2014 11:21:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21864 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbaAQQVX (ORCPT ); Fri, 17 Jan 2014 11:21:23 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0HGLMNh015202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 17 Jan 2014 11:21:23 -0500 Received: from smallhat.boston.devel.redhat.com (vpn-55-225.rdu2.redhat.com [10.10.55.225]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s0HGLLqp025784 for ; Fri, 17 Jan 2014 11:21:22 -0500 From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH] exportfs: Exit with correct value when an error occurs Date: Fri, 17 Jan 2014 11:23:09 -0500 Message-Id: <1389975789-3981-1-git-send-email-steved@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Steve Dickson --- support/nfs/exports.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/nfs/exports.c b/support/nfs/exports.c index d18667f..819d6c4 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -366,7 +366,7 @@ mkexportent(char *hname, char *path, char *options) ee.e_hostname = xstrdup(hname); if (strlen(path) >= sizeof(ee.e_path)) { - xlog(L_WARNING, "path name %s too long", path); + xlog(L_ERROR, "path name %s too long", path); return NULL; } strncpy(ee.e_path, path, sizeof (ee.e_path));