]> git.pld-linux.org Git - packages/ash.git/blob - ash-ppid.patch
- dropped pre-cvs changelog
[packages/ash.git] / ash-ppid.patch
1 diff -ur ash-0.4.0/var.c ash-0.4.0-ppid/var.c
2 --- ash-0.4.0/var.c     Tue Apr 24 01:23:17 2001
3 +++ ash-0.4.0-ppid/var.c        Tue Apr 24 01:22:07 2001
4 @@ -172,6 +172,7 @@
5         const struct varinit *ip;
6         struct var *vp;
7         struct var **vpp;
8 +       char ppid[30];
9  
10         for (ip = varinit ; (vp = ip->var) != NULL ; ip++) {
11                 if ((vp->flags & VEXPORT) == 0) {
12 @@ -193,6 +194,9 @@
13                 vps1.text = strdup(geteuid() ? "PS1=$ " : "PS1=# ");
14                 vps1.flags = VSTRFIXED|VTEXTFIXED;
15         }
16 +       
17 +       snprintf(ppid, 29, "%ld", (long)getppid());
18 +       setvar("PPID", ppid, VREADONLY|VNOFUNC);
19  }
20  
21  /*
This page took 0.065166 seconds and 3 git commands to generate.