From patchwork Sat Jan 6 21:22:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 856463 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-88903-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="TxXGJ0e/"; 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 3zDZHb0bDtz9s7F for ; Sun, 7 Jan 2018 08:22:18 +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:cc:subject:date:message-id; q=dns; s= default; b=canDsOABetkQgZYrwQbT3NYm7w3PlRbPJmbMKSgWwOgmytMtu2Fp0 gfjb3T/NOOpKDl2fI35517NGc8Lnpw5XKlOtYtYS3LOVYVNRuiyktYQl0ZpFDE2N DHh1jTdb/c7roz2fr5UE/hNDk3OXk6uL2s19EFyIrt824Wiklqi2Tk= 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:cc:subject:date:message-id; s=default; bh=iEg8byjvHoY1bI6+eREzfxKBbo4=; b=TxXGJ0e/iQZxpWUG7MGHXTo4DCXu vjnHfKaLzw2uNXEEK2+uq8NB1hoU9WRJts2m/9BPL8KOcQRCv5aBfPnYaSISUk/z +lVlhKlKO1BcpV9spIYs5UQ70CjyXY/Fe+hyoJcpxpA97+dev4j4LotNn1RJSmL5 pkTZnBNr+s5VKuE= Received: (qmail 93007 invoked by alias); 6 Jan 2018 21:22:13 -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 92997 invoked by uid 89); 6 Jan 2018 21:22:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix posix glob test Date: Sat, 6 Jan 2018 22:22:08 +0100 Message-Id: <20180106212208.30217-1-samuel.thibault@ens-lyon.org> * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro. --- ChangeLog | 1 + posix/tst-glob_symlinks.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7e02feed9a..8bc25a4f87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise. * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with "-O2 -march=i686". + * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro. 2018-01-05 Tulio Magno Quites Machado Filho diff --git a/posix/tst-glob_symlinks.c b/posix/tst-glob_symlinks.c index 0f3478d3d0..df3baa8757 100644 --- a/posix/tst-glob_symlinks.c +++ b/posix/tst-glob_symlinks.c @@ -57,6 +57,9 @@ create_link (const char *base, const char *fname, char *linkname, add_temp_file (linkname); } +#ifndef PATH_MAX +# define PATH_MAX 1024 +#endif static char valid_link[PATH_MAX]; static char dangling_link[PATH_MAX]; static char dangling_dir[PATH_MAX];