From patchwork Mon Dec 17 23:09:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1014842 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-98437-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="yNt1gnGc"; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="JKuZsuEF"; 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 43JcLQ4Sx8z9s1c for ; Tue, 18 Dec 2018 10:09:49 +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 :mime-version:content-type; q=dns; s=default; b=ZKYc9NvKfSicKEqa 4v1GRgt6dIYb9dLiapWJnYeIU44NATNVmQHPpGPg7d94apda/hZ9obcKWwj4q7gw n5Jz5U8ypT6gFfml85UOEml3k93X2P3bixVyq2SmfZMikZlwuk+TayoWMiDsQVi1 jRK9b6oCUWOIqDAF0305HUiDqC8= 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 :mime-version:content-type; s=default; bh=Cg0p0SSk1Ox4CWnfUC+/+y j/zO8=; b=yNt1gnGc36jWg5l+6GVKNID1WnAJXTF1eJkaLo/4HpIlR14yQ1OaqN rSrmwAOQs3U1QSyuoDp91790PqbQBy6JiheLFrEa8z+AUnL9LsziiUQiHHdqJfOj DKjyDTELXg6gJDZQMD+KK64L3XSWhX/MLwQ6DgzfBkVvfcrTbuop4= Received: (qmail 116250 invoked by alias); 17 Dec 2018 23:09:41 -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 116239 invoked by uid 89); 17 Dec 2018 23:09:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, UNSUBSCRIBE_BODY autolearn=ham version=3.3.2 spammy= X-HELO: smtprelay.synopsys.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1545088178; bh=RKnV8A/BL9m1B2QQ7UQm3XeTje0v0bWC19So41eKiG8=; h=From:To:CC:Subject:Date:From; b=JKuZsuEF2luw4Qi0o8oiWaSUSv2MpkyTV66vG/rlX3jKfT81krLLlxRDW0Don0r58 P//FgowhxJfosp63atWneSIlEG9pEMTDcSDcMwMiNc9iGuf/7hl3NALJoUUD9zfBLN rC/fR3NMTr8NtxEAlS72Hpjo8h5K5BRD2K/IiUzJTkdXuS/u022wb8zuu38TjOb78a RRvRirdnPlLKNmwnnzKhxmbKn2DKADysAfp3wIiF2R9hKOdU8CztneecppqElzvuw/ O233SkirmfduKPGyaQMdtejgUQiohOkrldYIfaVacYjVOAthrcJyza3XK3rorD4Flz wjoO/vqXAF2Tg== From: Vineet Gupta To: CC: , Vineet Gupta Subject: [PATCH] testsuite fix: timezone: failing due to permissions in cross testing Date: Mon, 17 Dec 2018 15:09:30 -0800 Message-ID: <1545088170-24103-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 timezone test driver "zic" creates testdata directory wuth umask 755, so only root owner/group has write permissions. However the buildroot system created has sshd as default user, so sh fails to write to test results in this folder. Work around by relaxing umask to 777 | /bin/sh: build/glibc-fa3b6cd5bdbc/build/timezone/testdata/America/New_York.test-result: Permission denied | Makefile:96: recipe for target 'build/glibc-fa3b6cd5bdbc/build/timezone/testdata/America/New_York' failed | make[2]: *** [build/glibc-fa3b6cd5bdbc/build/timezone/testdata/America/New_York] Error 1 | make[2]: Leaving directory 'build/glibc-fa3b6cd5bdbc/timezone' | Makefile:258: recipe for target 'timezone/xtests' failed Signed-off-by: Vineet Gupta --- timezone/zic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timezone/zic.c b/timezone/zic.c index cb1bf28bfbc8..b7a5b0f6c80c 100644 --- a/timezone/zic.c +++ b/timezone/zic.c @@ -39,7 +39,7 @@ typedef int_fast64_t zic_t; #include #endif #ifdef S_IRUSR -#define MKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) +#define MKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH) #else #define MKDIR_UMASK 0755 #endif