]> git.pld-linux.org Git - packages/ash.git/commitdiff
- removed patching non-existing eval.c.orig
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 28 Apr 2001 12:12:52 +0000 (12:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ash-memout.patch -> 1.2

ash-memout.patch

index 9e6bb325bf6a6b91511864db00bfdfa0ee5cbbea..f9491303f415e8a35545fdce652b0c823487cfc2 100644 (file)
@@ -25,42 +25,6 @@ diff -u ash-0.4.0/eval.c ash-0.4.0-/eval.c
                        backcmd->buf = memout.buf;
 +#ifdef _GNU_SOURCE
 +                      backcmd->nleft = memout.bufsize;
-+#else
-                       backcmd->nleft = memout.nextc - memout.buf;
-+#endif
-                       memout.buf = NULL;
-               }
-+              cmdenviron = NULL;
-       } else {
- #ifdef DEBUG
-               trputs("normal command:  ");  trargs(argv);
-diff -u ash-0.4.0/eval.c.orig ash-0.4.0-/eval.c.orig
---- ash-0.4.0/eval.c.orig      Tue Apr 24 00:53:12 2001
-+++ ash-0.4.0-/eval.c.orig     Tue Apr 24 00:13:57 2001
-@@ -878,9 +878,13 @@
- #endif
-               mode = (cmdentry.u.index == EXECCMD)? 0 : REDIR_PUSH;
-               if (flags == EV_BACKCMD) {
-+#ifdef _GNU_SOURCE
-+                      openmemout();
-+#else
-                       memout.nleft = 0;
-                       memout.nextc = memout.buf;
-                       memout.bufsize = 64;
-+#endif
-                       mode |= REDIR_BACKQ;
-               }
-               redirect(cmd->ncmd.redirect, mode);
-@@ -927,10 +931,18 @@
-               if (cmdentry.u.index != EXECCMD)
-                       popredir();
-               if (flags == EV_BACKCMD) {
-+#ifdef _GNU_SOURCE
-+                      closememout();
-+#endif
-                       backcmd->buf = memout.buf;
-+#ifdef _GNU_SOURCE
-+                      backcmd->nleft = memout.bufsize;
 +#else
                        backcmd->nleft = memout.nextc - memout.buf;
 +#endif
This page took 0.194321 seconds and 4 git commands to generate.