1 diff -ruN ash-0.4.0.org/Makefile ash-0.4.0/Makefile
2 --- ash-0.4.0.org/Makefile Wed Sep 11 12:06:11 2002
3 +++ ash-0.4.0/Makefile Wed Sep 11 13:10:46 2002
5 init.c: mkinit $(INIT_DEPS)
12 + cc -o mkinit mkinit.c
14 + cc -o mknodes mknodes.c
16 + cc -o mksyntax mksyntax.c
17 +mksignames: mksignames.c
18 + cc -o mksignames mksignames.c
20 signames.c: mksignames
22 diff -ruN ash-0.4.0.org/error.h ash-0.4.0/error.h
23 --- ash-0.4.0.org/error.h Wed Sep 11 12:06:11 2002
24 +++ ash-0.4.0/error.h Wed Sep 11 13:10:46 2002
26 * so we use _setjmp instead.
29 -#if defined(BSD) && !defined(__SVR4) && !defined(__GLIBC__)
30 -#define setjmp(jmploc) _setjmp(jmploc)
31 -#define longjmp(jmploc, val) _longjmp(jmploc, val)
33 diff -ruN ash-0.4.0.org/eval.c ash-0.4.0/eval.c
34 --- ash-0.4.0.org/eval.c Wed Sep 11 12:06:11 2002
35 +++ ash-0.4.0/eval.c Wed Sep 11 13:10:46 2002
36 @@ -1149,11 +1150,8 @@
42 - len = confstr(_CS_PATH, NULL, 0);
43 - p = stalloc(len + 2);
45 - confstr(_CS_PATH, p, len);
47 + *p = "/bin:/usr/bin";
50 diff -ruN ash-0.4.0.org/mksignames.c ash-0.4.0/mksignames.c
51 --- ash-0.4.0.org/mksignames.c Wed Sep 11 12:06:11 2002
52 +++ ash-0.4.0/mksignames.c Wed Sep 11 13:11:00 2002
54 fprintf (stream, "#include <signal.h>\n\n");
56 "/* A translation list so we can be polite to our users. */\n");
57 - fprintf (stream, "char *signal_names[NSIG + 2] = {\n");
58 + fprintf (stream, "char *signal_names[66] = {\n");
60 for (i = 0; i <= NSIG; i++)
61 fprintf (stream, " \"%s\",\n", signal_names[i]);
62 diff -ruN ash-0.4.0.org/output.c ash-0.4.0/output.c
63 --- ash-0.4.0.org/output.c Wed Sep 11 12:06:11 2002
64 +++ ash-0.4.0/output.c Wed Sep 11 13:10:46 2002
69 - memout.stream = open_memstream(&memout.buf, &memout.bufsize);
70 +// memout.stream = open_memstream(&memout.buf, &memout.bufsize);
74 diff -ruN ash-0.4.0.org/setmode.c ash-0.4.0/setmode.c
75 --- ash-0.4.0.org/setmode.c Wed Sep 11 12:06:11 2002
76 +++ ash-0.4.0/setmode.c Wed Sep 11 13:10:46 2002
79 #endif /* LIBC_SCCS and not lint */
82 #include <sys/types.h>
88 __weak_alias(setmode,_setmode)
92 -#define S_ISTXT __S_ISVTX
94 +#define S_ISTXT 01000
96 #define SET_LEN 6 /* initial # of bitcmd struct to malloc */
97 #define SET_LEN_INCR 4 /* # of bitcmd structs to add as needed */