From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14070 invoked from network); 28 Jun 2020 12:11:06 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 28 Jun 2020 12:11:06 -0000 Received: (qmail 10531 invoked by alias); 28 Jun 2020 12:10:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46158 Received: (qmail 26257 invoked by uid 1010); 28 Jun 2020 12:10:54 -0000 X-Qmail-Scanner-Diagnostics: from mail-ej1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25850. spamassassin: 3.4.4. Clear:RC:0(209.85.218.41):SA:0(-1.7/5.0):. Processed in 4.326732 secs); 28 Jun 2020 12:10:54 -0000 X-Envelope-From: staal1978@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.218.41 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=j95O67Ly+3ZZYFAGB6DjUCb8po9aZzAuwVUe+WdhVMQ=; b=i/naG+nfYcQhb5SVFZ8h/G9owOI7guB6UwPW0fQI79sp9+1P8W4gh23F8+Wmj1p+Hq pSQZg6gB8vlK5ZAlvszJzj/3ex2ghnqGmgDs8doBmrZl/Z6XQiN/ugamD7KDFqC/i8Zy gk6Ew+KX5TRLWdX1QFEB4+2QpDSxhyP8DamiYv2ajSLKv1dEsJP3spdMK/7DCdMjJ85L 6CNi3IfZ3vYs5Lvzqn17fou3SVpRFeNtfloU6DqjYrd0WcqIH51QJMdYK/EGYnOjoO9l 3cy9ri4u/A8dEltZJvBB8UgwMFO5Vyk0K4DcuYFnu6KMZjzPz+yWYMqQ63e6qhWBWHnu Uq/Q== X-Gm-Message-State: AOAM5324qaFDJs1mScb1GmlS+DN6d9zKNAtpHQqwRgLhWfcySGQi9QGI XrYAtg92W8w2uHILKz9ATkkAJc3SWe8= X-Google-Smtp-Source: ABdhPJzqteZqNu2W7nOuPf8M3r1tT75op8gkKxSk62fmnhz4y9Do7dIEo1b8Ek+oHFtmTrchIy0orA== X-Received: by 2002:a17:906:a01:: with SMTP id w1mr10213027ejf.197.1593346214582; Sun, 28 Jun 2020 05:10:14 -0700 (PDT) Date: Sun, 28 Jun 2020 14:10:11 +0200 From: Jens Staal To: zsh-workers@zsh.org Subject: best way to disable PRIVILEGED? Message-ID: <20200628121011.22lv3n75sj2j5qhc@Hugin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dear all, I just got zsh to compile under Plan9/APE using PDCurses [1], terminfo stubs from old PDCurses [2], pcre [3] and some hacking [4] (at the time of this writing the last modifications have not been pushed yet, currently only builds with "make", mkfile not completely done yet). the zsh executes but with the error: "zsh: error on TTY read: permission denied" One of the hacks I did was to redefine seteuid to setuid. I am not sure if that would be the reason for the error or if I will end up noticing that the issue are my terminfo stubs... Has anyone else tried to build zsh with pdcurses on systems without terminfo? A logical first thing to try however is to follow the instructions in zsh_system.h and remove the seteuid hack and disable PRIVILEGED. What is the best way of doing this? Just deleting all parts referring to PRIVILEGED or is there a more elegant solution? Best regards, Jens [1] https://github.com/staalmannen/PDCurses [2] https://github.com/staalmannen/pdterm [3] https://github.com/staalmannen/pcre [4] https://github.com/staalmannen/zsh