From patchwork Sat Jan 5 14:00:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1020968 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-99068-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="OqZWoPXW"; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Rx7E6Fbc"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43X3H21c44z9s7h for ; Sun, 6 Jan 2019 01:01:34 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=uM1rWh/nefT04ci+B4dyd/woAgF92OKQa1lmeuBVY0e/h77gftpIc g4AYTXJkiwM1IEE5DWQ1attzWYKq8HQGvMunEecOHg2+95SjeWxgTJ1poDd1YPzn wHm05St3PD78Oxnexp3nJU/2He9fcMAcU6mRzrMVEqnoCFjgl3I9pg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=WPlrvYcJvLAX95QVoTMqJPheXRM=; b=OqZWoPXWK1435G9RP1/2XUiQ4Qx6 jafb81uTNYS+IbGx+Xuy3psHurzDB9GxxlETlOUJ1Hs7OChzjKX88LLfTJzf7Ctk S0rOZow8vI55eMQp2Ye3JBvSjrfKCUeldA44nEKNq/uifwQW9ofD9rXHu9swfMOZ W7EoAow1pom7m6k= Received: (qmail 104892 invoked by alias); 5 Jan 2019 14:01:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 104825 invoked by uid 89); 5 Jan 2019 14:01:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=fourth X-HELO: mail-qt1-f177.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=LlCxHw3rac1tEvh+/Kdcr1VHueRh4lDB/6SDxwKtL54=; b=Rx7E6FbcPYssJXpGDDbZioCbZuWfdzyJy8f1dO9AVoooYWpSa/D3TEbL0mz94hK+q7 M285ASd7E7GkdVeNhPBpa7//WEONLmHQMPfNcfwBDSLyZl7f6lrdY9K4SN8Eauk3H3cS Me1cUodoz7WauyMx6dVAyouSldk1PW6XfUwTk= From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] posix: Fix tst-spawn.c issue from commit 805334b26c Date: Sat, 5 Jan 2019 12:00:59 -0200 Message-Id: <20190105140059.21208-1-adhemerval.zanella@linaro.org> Checked on powerpc64le-linux-gnu. * posix/tst-spawn.c (do_test): Extend spargv to new required size and fix typo. --- ChangeLog | 5 +++++ posix/tst-spawn.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/posix/tst-spawn.c b/posix/tst-spawn.c index b45e0d885e..eea5addbf3 100644 --- a/posix/tst-spawn.c +++ b/posix/tst-spawn.c @@ -154,7 +154,7 @@ do_test (int argc, char *argv[]) char fd4name[18]; char fd5name[18]; char *name3_copy; - char *spargv[12]; + char *spargv[13]; int i; /* We must have @@ -169,7 +169,7 @@ do_test (int argc, char *argv[]) + the newly opened file descriptor + the duped second descriptor + the name of the closed descriptor - + the duped fourth dile descriptor which O_CLOEXEC should be + + the duped fourth file descriptor which O_CLOEXEC should be remove by adddup2. */ if (argc != (restart ? 7 : 2) && argc != (restart ? 7 : 5))