]> git.pld-linux.org Git - packages/ash.git/blob - ash-fd.patch
- patches from rawhide.
[packages/ash.git] / ash-fd.patch
1 --- ash-linux-0.2/parser.c.foo  Sat Sep 11 17:33:40 1999
2 +++ ash-linux-0.2/parser.c      Sat Sep 11 17:36:02 1999
3 @@ -552,15 +552,11 @@
4                 }
5         } else if (n->type == NTOFD || n->type == NFROMFD) {
6                 if (is_digit(wordtext[0]))
7 -                       n->ndup.dupfd = digit_val(wordtext[0]);
8 +                       n->ndup.dupfd = atoi(wordtext);
9                 else if (wordtext[0] == '-')
10                         n->ndup.dupfd = -1;
11                 else
12 -                       goto bad;
13 -               if (wordtext[1] != '\0') {
14 -bad:
15                         synerror("Bad fd number");
16 -               }
17         } else {
18                 n->nfile.fname = (union node *)stalloc(sizeof (struct narg));
19                 n = n->nfile.fname;
This page took 0.024277 seconds and 3 git commands to generate.