Revision 8220,
577 bytes
checked in by cfields, 29 years ago
(diff) |
So I've added nonenvironmental stuff, but renaming the file would
not be fun at this point, so I haven't done it.
Moved file_exists and other stuff here since it now needs to be
used in more than one of the .c files.
These changes (ifdef'd SOLARIS_MAE) cause the ethernet device to
be chowned to the user and back to root on login/logout if the
file /etc/netspy exists. This was the least bad hack available
at the time to solve the MAE problem (rm not being considered
acceptable), but there is a possibly much better option available
now.
|
Line | |
---|
1 | /* |
---|
2 | * Common environment variable settings. |
---|
3 | */ |
---|
4 | |
---|
5 | #ifdef ultrix |
---|
6 | #define HOSTTYPE "decmips" |
---|
7 | #endif |
---|
8 | |
---|
9 | #ifdef _IBMR2 |
---|
10 | #define HOSTTYPE "rsaix" |
---|
11 | #endif |
---|
12 | |
---|
13 | #ifdef SOLARIS |
---|
14 | #define HOSTTYPE "sun4" |
---|
15 | #endif |
---|
16 | |
---|
17 | #ifdef sgi |
---|
18 | #define HOSTTYPE "sgi" |
---|
19 | #endif |
---|
20 | |
---|
21 | /* Common macros. */ |
---|
22 | #define file_exists(f) (access((f), F_OK) == 0) |
---|
23 | #define ROOT 0 |
---|
24 | |
---|
25 | #ifdef SOLARIS_MAE |
---|
26 | /* Stuff for supporting MAE's need to talk to the network. Sigh. */ |
---|
27 | |
---|
28 | #ifndef NETSPY |
---|
29 | #define NETSPY "/etc/netspy" |
---|
30 | #endif |
---|
31 | |
---|
32 | #define SYS 3 /* group for chown of NETDEV */ |
---|
33 | |
---|
34 | #define NETDEV "/dev/le" |
---|
35 | |
---|
36 | extern int netspy; |
---|
37 | #endif /* SOLARIS_MAE */ |
---|
Note: See
TracBrowser
for help on using the repository browser.