From: "Vladimir N. Oleynik" <dzo@simtreas.ru>
To: dash@vger.kernel.org
Subject: [PATH] forgoten set $PPID readonly
Date: Wed, 3 Feb 2021 16:54:24 +0400 [thread overview]
Message-ID: <be7ceb79-c721-740a-7f5a-b65b15d4da24@simtreas.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 101 bytes --]
Hello.
You probably forgot to specify the readonly flag for $PPID.
Micro patch attached.
--w
vodz
[-- Attachment #2: var_ppid.diff --]
[-- Type: text/x-patch, Size: 321 bytes --]
--- var.c~ 2021-01-31 12:30:38.000000000 +0400
+++ var.c 2021-02-03 16:46:34.657412861 +0400
@@ -139,7 +139,7 @@
setvareq(defoptindvar, VTEXTFIXED);
fmtstr(ppid + 5, sizeof(ppid) - 5, "%ld", (long) getppid());
- setvareq(ppid, VTEXTFIXED);
+ setvareq(ppid, VTEXTFIXED|VREADONLY);
p = lookupvar("PWD");
if (p)
next reply other threads:[~2021-02-03 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 12:54 Vladimir N. Oleynik [this message]
2024-04-05 8:41 ` [PATH] forgoten set $PPID readonly Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be7ceb79-c721-740a-7f5a-b65b15d4da24@simtreas.ru \
--to=dzo@simtreas.ru \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).