From patchwork Fri Aug 12 08:27:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Dedecker X-Patchwork-Id: 658548 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s9dLp0xVxz9sXy for ; Fri, 12 Aug 2016 18:28:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=QllWER+L; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2DF51B92851; Fri, 12 Aug 2016 10:28:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Fri, 12 Aug 2016 10:28:06 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6FDBCB9284E for ; Fri, 12 Aug 2016 10:28:04 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 12 Aug 2016 10:28:04 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id o80so1556701wme.0 for ; Fri, 12 Aug 2016 01:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=l+qxYK5ajYEGs6WjKgCBfiikCmasH6drdtDV1zzcCEE=; b=QllWER+LdbmjJCgyG6HVLvhUlwDVCVrG56Y67Jss9nOUFR/Y0eNBP3W6m4gLPvtxEE bQSA21FB1U8pH8JxGP5qxbdzWHkkMf5aIr78S8ZYgMbnlRbZD2HN80YF8rO5vaRtKtr0 azK8eMhahn7K+LgowWDu2r7GQn3jW/kqnDx3uzf3XQC5VO5Kby93IoAkf4t5oFZ3h/an qeSLdLztHAbHspdhl6tyBAF63JEtcIhixMyIXdKaNQ+uoUwoj8ClXGE1cYoZH8HoUqCh fy6jp+ekTgU8u7fMuzQcJCZeyw4lgQ4JuAFz5HNUFSaF+0eUlAltZKUqaxBwAQ9/OV+s je7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=l+qxYK5ajYEGs6WjKgCBfiikCmasH6drdtDV1zzcCEE=; b=OgKgZJf5RH6PTXAajDPPxJQ8XKzhfCfAYfYolmrsQei/b8zuvys/1OFR4QjeY1D8zL x9YjxQmIa6tghV8vvjoNfGabe3WiES6gdBsTunkN7jkZej3AwG0KoJMF+JlAk+SGZACW 6oziIFeYyooyJxg6H6V1cX3KADvt/RSDwe4p+FsO882PHPQKa3KF2hkET77+oaEDvJjp WutjMrVyDFIhzz1qqTLGe33eQwT/rrCvfZqoFefffL6Pd7eK4f0I5+C6CeJbmoNoxQH+ FWXSrbf7k9p0lSpQSb9uQj5p2DH2hKLPKnf+RAn3z4rQADeVDY6maNdBrOJuvZvoP1Tx q7rA== X-Gm-Message-State: AEkoousPZUhP7GUILHeALLi1zo6WkBVZvrK2vdn5irV/SGlHTalx+YvF8UfeBieS+dnoCA== X-Received: by 10.28.207.132 with SMTP id f126mr1626387wmg.40.1470990483820; Fri, 12 Aug 2016 01:28:03 -0700 (PDT) Received: from cplx43.eu.thmulti.com ([141.11.62.7]) by smtp.gmail.com with ESMTPSA id ko7sm6367737wjc.48.2016.08.12.01.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Aug 2016 01:28:03 -0700 (PDT) From: Hans Dedecker To: openwrt-devel@lists.openwrt.org, lede-dev@lists.infradead.org Date: Fri, 12 Aug 2016 10:27:54 +0200 Message-Id: <1470990474-24445-1-git-send-email-dedeckeh@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [OpenWrt-Devel] [PATCH] procd: uClibc O_PATH backwards compatibility fixes X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans Dedecker MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Hans Dedecker --- inittab.c | 4 ++++ utils/utils.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/inittab.c b/inittab.c index 6dde11a..ae2c431 100644 --- a/inittab.c +++ b/inittab.c @@ -31,6 +31,10 @@ #include "procd.h" #include "rcS.h" +#ifndef O_PATH +#define O_PATH 010000000 +#endif + #define TAG_ID 0 #define TAG_RUNLVL 1 #define TAG_ACTION 2 diff --git a/utils/utils.c b/utils/utils.c index 8f14aad..e239eda 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -26,6 +26,10 @@ #include "../log.h" +#ifndef O_PATH +#define O_PATH 010000000 +#endif + void __blobmsg_list_init(struct blobmsg_list *list, int offset, int len, blobmsg_list_cmp cmp) {