.
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=26
This commit is contained in:
parent
82f9de736d
commit
ec48fd8348
@ -1,7 +1,5 @@
|
|||||||
Index: man/init.8
|
--- man/init.8
|
||||||
===================================================================
|
+++ man/init.8 2004-03-12 12:44:29.000000000 +0000
|
||||||
--- man/init.8.orig
|
|
||||||
+++ man/init.8
|
|
||||||
@@ -232,7 +232,7 @@ It activates the \fIkbrequest\fP action.
|
@@ -232,7 +232,7 @@ It activates the \fIkbrequest\fP action.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
\fBInit\fP is compatible with the System V init. It works closely
|
\fBInit\fP is compatible with the System V init. It works closely
|
||||||
@ -11,10 +9,8 @@ Index: man/init.8
|
|||||||
If your system uses this convention, there should be a \fIREADME\fP
|
If your system uses this convention, there should be a \fIREADME\fP
|
||||||
file in the directory \fI/etc/init.d\fP explaining how these scripts work.
|
file in the directory \fI/etc/init.d\fP explaining how these scripts work.
|
||||||
.\"}}}
|
.\"}}}
|
||||||
Index: src/paths.h
|
--- src/paths.h
|
||||||
===================================================================
|
+++ src/paths.h 2004-03-12 12:45:00.000000000 +0000
|
||||||
--- src/paths.h.orig
|
|
||||||
+++ src/paths.h
|
|
||||||
@@ -26,10 +26,10 @@
|
@@ -26,10 +26,10 @@
|
||||||
#define SHELL "/bin/sh" /* Default shell */
|
#define SHELL "/bin/sh" /* Default shell */
|
||||||
#define SULOGIN "/sbin/sulogin" /* Sulogin */
|
#define SULOGIN "/sbin/sulogin" /* Sulogin */
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: src/init.c
|
--- src/init.c
|
||||||
===================================================================
|
+++ src/init.c 2005-10-19 10:01:15.000000000 +0000
|
||||||
--- src/init.c.orig
|
|
||||||
+++ src/init.c
|
|
||||||
@@ -20,6 +20,14 @@
|
@@ -20,6 +20,14 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: src/init.c
|
--- src/init.c
|
||||||
===================================================================
|
+++ src/init.c 2006-08-22 13:04:27.000000000 +0000
|
||||||
--- src/init.c.orig
|
|
||||||
+++ src/init.c
|
|
||||||
@@ -107,6 +107,8 @@ sig_atomic_t got_signals; /* Set if we r
|
@@ -107,6 +107,8 @@ sig_atomic_t got_signals; /* Set if we r
|
||||||
int emerg_shell = 0; /* Start emergency shell? */
|
int emerg_shell = 0; /* Start emergency shell? */
|
||||||
int wrote_wtmp_reboot = 1; /* Set when we wrote the reboot record */
|
int wrote_wtmp_reboot = 1; /* Set when we wrote the reboot record */
|
||||||
@ -103,10 +101,8 @@ Index: src/init.c
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Say hello to the world
|
* Say hello to the world
|
||||||
Index: src/init.h
|
--- src/init.h
|
||||||
===================================================================
|
+++ src/init.h 2006-08-22 12:29:39.000000000 +0000
|
||||||
--- src/init.h.orig
|
|
||||||
+++ src/init.h
|
|
||||||
@@ -99,6 +99,10 @@ typedef struct _child_ {
|
@@ -99,6 +99,10 @@ typedef struct _child_ {
|
||||||
extern CHILD *family;
|
extern CHILD *family;
|
||||||
extern int wrote_wtmp_reboot;
|
extern int wrote_wtmp_reboot;
|
||||||
@ -125,10 +121,8 @@ Index: src/init.h
|
|||||||
+#define D_WROTE_WTMP_RLEVEL -16
|
+#define D_WROTE_WTMP_RLEVEL -16
|
||||||
+#define D_WROTE_UTMP_RLEVEL -17
|
+#define D_WROTE_UTMP_RLEVEL -17
|
||||||
|
|
||||||
Index: src/utmp.c
|
--- src/utmp.c
|
||||||
===================================================================
|
+++ src/utmp.c 2006-08-22 12:28:52.000000000 +0000
|
||||||
--- src/utmp.c.orig
|
|
||||||
+++ src/utmp.c
|
|
||||||
@@ -49,6 +49,12 @@ char *line) /* Which line is this */
|
@@ -49,6 +49,12 @@ char *line) /* Which line is this */
|
||||||
struct utsname uname_buf;
|
struct utsname uname_buf;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
-USRBIN += utmpdump wall
|
-USRBIN += utmpdump wall
|
||||||
-MAN1 += mountpoint.1 wall.1
|
-MAN1 += mountpoint.1 wall.1
|
||||||
+USRBIN += utmpdump wall mesg
|
+USRBIN += utmpdump wall mesg
|
||||||
+MAN1 += mountpoint.1 wall.1 mesg.1
|
+MAN1 += utmpdump.1 mountpoint.1 wall.1 mesg.1
|
||||||
MAN8 += sulogin.8 bootlogd.8
|
MAN8 += sulogin.8 bootlogd.8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -74,7 +74,7 @@
|
|||||||
+BIN += mountpoint
|
+BIN += mountpoint
|
||||||
+SBIN += sulogin
|
+SBIN += sulogin
|
||||||
+USRBIN += utmpdump
|
+USRBIN += utmpdump
|
||||||
+MAN1 += mountpoint.1
|
+MAN1 += utmpdump.1 mountpoint.1
|
||||||
+MAN8 += sulogin.8
|
+MAN8 += sulogin.8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -917,3 +917,51 @@
|
|||||||
#else
|
#else
|
||||||
time(&utmp.ut_time);
|
time(&utmp.ut_time);
|
||||||
#endif
|
#endif
|
||||||
|
--- doc/utmpdump.1
|
||||||
|
+++ doc/utmpdump.1 2010-02-08 13:41:51.154825000 +0000
|
||||||
|
@@ -0,0 +1,45 @@
|
||||||
|
+.TH UTMPDUMP 1 "Februar 8, 2010" "" "Linux System Administrator's Manual"
|
||||||
|
+.SH NAME
|
||||||
|
+utmpdump \- dump UTMP and WTMP files in raw format
|
||||||
|
+.SH SYNOPSIS
|
||||||
|
+.B utmpdump
|
||||||
|
+.RB [ \-froh ]
|
||||||
|
+.I filename
|
||||||
|
+.SH DESCRIPTION
|
||||||
|
+\fButmpdump\fP is a simple program to dump UTMP and WTMP files
|
||||||
|
+in raw format, so they can be examined.
|
||||||
|
+.SH OPTIONS
|
||||||
|
+.IP \fB\-f\fP
|
||||||
|
+output appended data as the file grows.
|
||||||
|
+.IP "\fB\-r\fP"
|
||||||
|
+reverse. Write back edited login information into utmp or wtmp files.
|
||||||
|
+.IP \fB\-o\fP
|
||||||
|
+use old libc5 format.
|
||||||
|
+.IP \fB\-h\fP
|
||||||
|
+usage information.
|
||||||
|
+.PP
|
||||||
|
+utmpdump can be useful in cases of corrupted utmp or wtmp entries.
|
||||||
|
+It can dump out utmp/wtmp to an ASCII file, then that file can
|
||||||
|
+be edited to remove bogus entries and reintegrated, using
|
||||||
|
+.PP
|
||||||
|
+.sp 1
|
||||||
|
+.in +1c
|
||||||
|
+.nf
|
||||||
|
+\fButmpdump -r < ascii file > wtmp\fP
|
||||||
|
+.fi
|
||||||
|
+.in -1c
|
||||||
|
+.sp 1
|
||||||
|
+but be warned as
|
||||||
|
+.B utmpdump
|
||||||
|
+was written for debugging purpose only.
|
||||||
|
+.SH BUGS
|
||||||
|
+You may
|
||||||
|
+.B not
|
||||||
|
+use the option \fB\-r\fP as the format for the
|
||||||
|
+utmp/wtmp files strongly depends on the
|
||||||
|
+input format.
|
||||||
|
+.SH "SEE ALSO"
|
||||||
|
+.BR last (1),
|
||||||
|
+.BR w (1),
|
||||||
|
+.BR who (1),
|
||||||
|
+.BR utmp (5),
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 8 15:58:56 CET 2010 - werner@suse.de
|
||||||
|
|
||||||
|
- Add a manual page for utmpdump (bnc#576967)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 29 14:30:44 CET 2010 - werner@suse.de
|
Fri Jan 29 14:30:44 CET 2010 - werner@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user