|
|
1.1 root 1: This shows the changes needed to a System V or UNIX 5.0 UUCP to
2: implement the -z option. The -n option is in the standard system,
3: but you usually want to be notified if something goes wrong.
4:
5: I looked at the 4.0 sources and compared them to the 5.0. The programs
6: have changed but the changes aren't many. Only uucp.h, uux.c, and uuxqt.c
7: need be changed. I'll be putting in the changes once I get permission from
8: our systems people.
9:
10: ==============================================================
11: ---- uucp.h ---- 137,139 ----
12: #define X_USER 'U'
13: #define X_NONOTI 'N'
14: > #define X_NONZERO 'Z' /* don't notify if zero return */
15: #define X_SENDFILE 'S'
16: ==============================================================
17: ---- uux.c ---- 54, 55 ----
18: int nonoti = 0;
19: > #ifdef X_NONZERO
20: > int nonzero = 0;
21: > #endif
22: int uid, ret;
23: ---- uux.c ---- 146,149 ----
24: case 'n':
25: nonoti = 1;
26: break;
27: > #ifdef X_NONZERO
28: > case 'z':
29: > nonzero = 1;
30: > break;
31: > #endif
32: default:
33: ---- uux.c ---- 218,221 ----
34: if (nonoti)
35: fprintf(fprx,"%c\n", X_NONOTI);
36: > #ifdef X_NONZERO
37: > if (nonzero)
38: > fprintf(fprx,"%c\n", X_NONZERO);
39: > #endif
40: if (statop)
41: fprintf(fprx,"%c %s\n", X_MAILF, Sfile);
42: ==============================================================
43: ---- uuxqt.c ---- 185,188 ----
44: int stcico = 0;
45: int argnok;
46: > #ifdef X_NONZERO
47: > int nonzero = 0;
48: > #endif
49: char xcmd[200];
50: ---- uuxqt.c ---- 43, 45 ----
51: case X_NONOTI:
52: notiok = 0;
53: break;
54: > #ifdef X_NONZERO
55: > /*
56: > * notify only if non-zero status return
57: > */
58: > case X_NONZERO:
59: > nonzero = 1;
60: > break;
61: > #endif
62: default:
63: ---- uuxqt.c ---- 273,278 ----
64: if (strcmp(xcmd, "rmail") != SAME
65: > #ifndef X_NONZERO
66: && strcmp(xcmd, "mail") != SAME) {
67: > #else
68: > && strcmp(xcmd, "mail") != SAME
69: > && (!nonzero || (nonzero && ret != 0)) {
70: > #endif
71:
72: /*
73: * see if user wants respcifiction
74: */
75: ==============================================================
76:
77:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.