]>
Commit | Line | Data |
---|---|---|
1 | diff -urN sysvinit-2.78.org/src/Makefile sysvinit-2.78/src/Makefile | |
2 | --- sysvinit-2.78.org/src/Makefile Thu Mar 2 18:17:48 2000 | |
3 | +++ sysvinit-2.78/src/Makefile Thu Mar 2 18:18:08 2000 | |
4 | @@ -8,8 +8,9 @@ | |
5 | # Version: @(#)Makefile 2.78 13-Nov-1999 miquels@cistron.nl | |
6 | # | |
7 | ||
8 | -CC = cc | |
9 | -CFLAGS = -Wall -O2 -D_GNU_SOURCE | |
10 | +CC = gcc | |
11 | +OPTIMIZE = -O2 | |
12 | +CFLAGS = -Wall $(OPTIMIZE) -D_GNU_SOURCE | |
13 | LDFLAGS = -s | |
14 | STATIC = | |
15 | ||
16 | @@ -88,7 +89,8 @@ | |
17 | runlevel shutdown $(ROOT)/sbin | |
18 | # These are not installed by default | |
19 | ifeq ($(DEBIAN),) | |
20 | - $(INSTALL) -m 555 utmpdump wall $(ROOT)/usr/bin | |
21 | + $(INSTALL) -m 755 wall $(ROOT)/usr/bin | |
22 | + $(INSTALL) -m 755 utmpdump $(ROOT)/usr/bin/utmpx-dump | |
23 | endif | |
24 | # $(INSTALL) -m 755 etc/initscript.sample $(ROOT)/etc | |
25 | $(INSTALL) -m 755 mesg last $(ROOT)/usr/bin | |
26 | diff -urN sysvinit-2.78.org/src/last.c sysvinit-2.78/src/last.c | |
27 | --- sysvinit-2.78.org/src/last.c Thu Mar 2 18:17:48 2000 | |
28 | +++ sysvinit-2.78/src/last.c Thu Mar 2 18:18:08 2000 | |
29 | @@ -236,7 +236,7 @@ | |
30 | * Try to be smart about the location of the BTMP file | |
31 | */ | |
32 | #ifndef BTMP_FILE | |
33 | -#define BTMP_FILE getbtmp() | |
34 | +#define BTMP_FILE "/var/log/btmpx" | |
35 | char *getbtmp() | |
36 | { | |
37 | static char btmp[128]; | |
38 | diff -urN sysvinit-2.78.org/src/paths.h sysvinit-2.78/src/paths.h | |
39 | --- sysvinit-2.78.org/src/paths.h Thu Mar 2 18:17:48 2000 | |
40 | +++ sysvinit-2.78/src/paths.h Thu Mar 2 18:18:08 2000 | |
41 | @@ -28,7 +28,7 @@ | |
42 | #define SDPID "/var/run/shutdown.pid" /* PID of shutdown program */ | |
43 | #define IOSAVE "/etc/ioctl.save" /* termios settings for SU */ | |
44 | #define SHELL "/bin/sh" /* Default shell */ | |
45 | -#define INITSCRIPT "/etc/initscript" /* Initscript. */ | |
46 | +#define INITSCRIPT "/etc/rc.d/rc.init" /* Initscript. */ | |
47 | #if 0 | |
48 | #define HALTSCRIPT1 "/etc/init.d/halt" /* Called by "fast" shutdown */ | |
49 | #define HALTSCRIPT2 "/etc/rc.d/rc.0" /* Called by "fast" shutdown */ | |
50 | diff -urN sysvinit-2.78.org/src/utmpdump.c sysvinit-2.78/src/utmpdump.c | |
51 | --- sysvinit-2.78.org/src/utmpdump.c Thu Mar 2 18:17:48 2000 | |
52 | +++ sysvinit-2.78/src/utmpdump.c Thu Mar 2 18:18:08 2000 | |
53 | @@ -263,14 +263,14 @@ | |
54 | } | |
55 | ||
56 | if (optind < argc) { | |
57 | - fprintf(stderr, "Utmp %sdump of %s\n", reverse ? "un" : "", argv[optind]); | |
58 | + fprintf(stderr, "Utmpx %sdump of %s\n", reverse ? "un" : "", argv[optind]); | |
59 | if ((fp = fopen(argv[optind], "r")) == NULL) { | |
60 | perror("Unable to open file"); | |
61 | exit(1); | |
62 | } | |
63 | } | |
64 | else { | |
65 | - fprintf(stderr, "Utmp %sdump of stdin\n", reverse ? "un" : ""); | |
66 | + fprintf(stderr, "Utmpx %sdump of stdin\n", reverse ? "un" : ""); | |
67 | fp = stdin; | |
68 | } | |
69 |