diff options
Diffstat (limited to 'source/ap/ash/patches/ash-ppid.patch')
-rw-r--r-- | source/ap/ash/patches/ash-ppid.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/ap/ash/patches/ash-ppid.patch b/source/ap/ash/patches/ash-ppid.patch new file mode 100644 index 00000000..954b509d --- /dev/null +++ b/source/ap/ash/patches/ash-ppid.patch @@ -0,0 +1,21 @@ +diff -ur ash-0.4.0/var.c ash-0.4.0-ppid/var.c +--- ash-0.4.0/var.c Tue Apr 24 01:23:17 2001 ++++ ash-0.4.0-ppid/var.c Tue Apr 24 01:22:07 2001 +@@ -172,6 +172,7 @@ + const struct varinit *ip; + struct var *vp; + struct var **vpp; ++ char ppid[30]; + + for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { + if ((vp->flags & VEXPORT) == 0) { +@@ -193,6 +194,9 @@ + vps1.text = strdup(geteuid() ? "PS1=$ " : "PS1=# "); + vps1.flags = VSTRFIXED|VTEXTFIXED; + } ++ ++ snprintf(ppid, 29, "%ld", (long)getppid()); ++ setvar("PPID", ppid, VREADONLY|VNOFUNC); + } + + /* |