]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-lastlog.patch
- does not require logrotate; rel 19
[packages/SysVinit.git] / sysvinit-lastlog.patch
1 diff -urN sysvinit-2.86/man/intl/cs/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/cs/man8/lastlog.8
2 --- sysvinit-2.86/man/intl/cs/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
3 +++ sysvinit-2.86-lastlog/man/intl/cs/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
4 @@ -0,0 +1,40 @@
5 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
6 +.\"    $Id$
7 +.\"
8 +.TH LASTLOG 8
9 +.SH JMÉNO
10 +lastlog \- prozkoumá soubor lastlog
11 +.SH SYNTAXE
12 +.B lastlog
13 +.RB [ \-u
14 +.IR přihlašovací\-jméno ]
15 +.RB [ \-t
16 +.IR dny ]
17 +.SH POPIS
18 +\fBlastlog\fR setřídí a zobrazí obsah souboru
19 +\fI/var/log/lastlog\fR,
20 +který obsahuje záznamy o přihlašování a odhlašování uživatelů v systému.
21 +Zobrazí se \fBpřihlašovací jméno\fR, \fBjméno terminálu\fR a \fBčas posledního
22 +přihlašení\fR.
23 +Standardně (tj. bez dalších voleb) lastlog zobrazí záznamy setříděné
24 +podle čísla UID.
25 +Použití přepínače \fB\-u \fIpřihlašovací\-jméno\fR
26 +způsobí, že bude vytištěn pouze poslední záznam o přihlášení příslušného uživatele.
27 +Zadáním \fB\-t \fIdny\fR se zobrazí pouze
28 +ta přihlášení, které jsou dřívější než zadané \fIdny\fR.
29 +Parametr \fB\-t\fR překryje případný parametr \fB\-u\fR.
30 +.PP
31 +Pokud se uživatel ještě nikdy nepřihlásil, zobrazí se zpráva \fB"**Never logged in**"\fR (Nikdy nepřihlášen)
32 +místo jména terminálu a času.
33 +.SH SOUBORY
34 +/var/log/lastlog \- soubor se záznamy o přihlášení a odhlášení
35 +.SH NÁMITKY
36 +Velké rozdíly v UID číslech jsou způsobeny tím, že lastlog program běžel dlouho bez
37 +výstupu na obrazovku (např. mmdf=800 a poslední uid=170, program se bude
38 +jevit jako s uid 171\-799).
39 +.SH AUTOŘI
40 +Julianne Frances Haugh (jfh@austin.ibm.com)
41 +.br
42 +Phillip Street
43 +.SH PŘELOŽIL
44 +Ondřej Pavlíček (mox@post.cz).
45 diff -urN sysvinit-2.86/man/intl/fr/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/fr/man8/lastlog.8
46 --- sysvinit-2.86/man/intl/fr/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
47 +++ sysvinit-2.86-lastlog/man/intl/fr/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
48 @@ -0,0 +1,66 @@
49 +.\"     Title: lastlog
50 +.\"    Author: 
51 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
52 +.\"      Date: 30/07/2006
53 +.\"    Manual: Commandes de gestion du système
54 +.\"    Source: Commandes de gestion du système
55 +.\"
56 +.TH "LASTLOG" "8" "30/07/2006" "Commandes de gestion du systèm" "Commandes de gestion du systèm"
57 +.\" disable hyphenation
58 +.nh
59 +.\" disable justification (adjust text to left margin only)
60 +.ad l
61 +.SH "NOM"
62 +lastlog \- signaler les connexions les plus récentes de tous les utilisateurs ou d'un utilisateur donné
63 +.SH "SYNOPSIS"
64 +.HP 8
65 +\fBlastlog\fR [\fIoptions\fR]
66 +.SH "DESCRIPTION"
67 +.PP
68 +\fBLastlog\fR
69 +affiche le contenu du journal des dernières connexions (\fI/var/log/lastlog\fR). Les champs
70 +\fIUtilisateur\fR,
71 +\fIPort\fR, date de
72 +\fIDernière\fR
73 +connexion sont affichés. Par défaut (aucune option de spécifiée), les entrées de laslog sont affichées triées par ordre d'apparition dans
74 +\fI/etc/passwd\fR.
75 +.SH "OPTIONS"
76 +.PP
77 +Les options disponibles pour la commande
78 +\fBlastlog\fR
79 +sont\ :
80 +.TP 3n
81 +\fB\-b\fR, \fB\-\-before\fR \fIJOURS\fR
82 +N'affiche que les entrées du fichier lastlog plus anciennes que
83 +\fIJOURS\fR.
84 +.TP 3n
85 +\fB\-h\fR, \fB\-\-help\fR
86 +Afficher un message d'aide et quitter.
87 +.TP 3n
88 +\fB\-t\fR, \fB\-\-time\fR \fIJOURS\fR
89 +Affiche les entrées du fichier lastlog plus récentes que
90 +\fIJOURS\fR.
91 +.TP 3n
92 +\fB\-u\fR, \fB\-\-user\fR \fIIDENTIFIANT\fR
93 +N'affiche que les entrées correspondant à l'utilisateur
94 +\fIIDENTIFIANT\fR.
95 +.TP 3n
96 +L'utilisation de l'option \fB\-t\fR supplante l'option \fB\-u\fR.
97 +.PP
98 +Dans le cas où l'utilisateur ne s'est jamais connecté, le message \(Fo\ \fI**Never logged in**\fR\ \(Fc (\(Fo\ \fI**Jamais connecté**\fR\ \(Fc) est affiché à la place des champs
99 +\fIPort\fR
100 +et date de
101 +\fIDernière\fR
102 +connexion.
103 +.SH "NOTE"
104 +.PP
105 +Le fichier
106 +\fIlastlog\fR
107 +est une base de données qui contient des informations concernant la dernière connexion de chaque utilisateur. Vous n'avez pas à faire de rotation (avec rotate) sur ce fichier. C'est un fichier \(Fo\ creux\ \(Fc, donc sa taille sur le disque est bien plus petite que celle affichée par \(Fo\ \fBls \-l\fR\ \(Fc (qui peut indiquer un très gros fichier si vous avez des utilisateurs avec des UID élevés). Vous pouvez afficher sa taille réelle avec \(Fo\ \fBls \-s\fR\ \(Fc.
108 +.SH "FICHIERS"
109 +.TP 3n
110 +\fI/var/log/lastlog\fR
111 +Base de données de l'heure des connexions précédentes des utilisateurs.
112 +.SH "AVERTISSEMENTS"
113 +.PP
114 +S'il y a des trous importants dans les valeurs des UID, lastlog s'exécutera plus lentement, sans affichage à l'écran (par exemple, s'il n'y a pas d'entrée pour les utilisateurs ayant un UID compris entre 170 et 800 dans base de données lastlog, le programme lastlog semblera bloqué comme s'il traitait les entrées correspondant aux UID 171 à 799).
115 diff -urN sysvinit-2.86/man/intl/hu/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/hu/man8/lastlog.8
116 --- sysvinit-2.86/man/intl/hu/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
117 +++ sysvinit-2.86-lastlog/man/intl/hu/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
118 @@ -0,0 +1,68 @@
119 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
120 +.\" All rights reserved.
121 +.\"
122 +.\" Redistribution and use in source and binary forms, with or without
123 +.\" modification, are permitted provided that the following conditions
124 +.\" are met:
125 +.\" 1. Redistributions of source code must retain the above copyright
126 +.\"    notice, this list of conditions and the following disclaimer.
127 +.\" 2. Redistributions in binary form must reproduce the above copyright
128 +.\"    notice, this list of conditions and the following disclaimer in the
129 +.\"    documentation and/or other materials provided with the distribution.
130 +.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
131 +.\"    may be used to endorse or promote products derived from this software
132 +.\"    without specific prior written permission.
133 +.\"
134 +.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
135 +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
136 +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
137 +.\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
138 +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
139 +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
140 +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
141 +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
142 +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
143 +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
144 +.\" SUCH DAMAGE.
145 +.\"
146 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
147 +.\"    $Id$
148 +.\"
149 +.TH LASTLOG 8
150 +.SH NÉV
151 +lastlog \- a lastlog fájl vizsgálata
152 +.SH ÁTTEKINTÉS
153 +.B lastlog
154 +.RB [ -u
155 +.IR uid ]
156 +.RB [ -t
157 +.IR napok száma ]
158 +.SH LEÍRÁS
159 +
160 +A \fBlastlog\fR formázza és olvashatóan megjeleníti a
161 +\fB/var/log/lastlog\fR tartalmát. A listában szerepel a \fBlogin-név\fR, a
162 +\fBterminál (port) azonosítója\fR és a felhasználó \fBlegutolsó
163 +belépésének ideje\fR.  Paraméterek nélkül meghívva a
164 +felhasználó-azonosítók (UID) alapján sorbarendezve jelennek meg az
165 +értékek. A \fB-u \fIlogin-név\fR opció megadása esetén csak a megadott
166 +felhasználó utolsó belépésének ideje jelenik meg. A \fB-t \fInapok
167 +száma\fR opció megadásával csak a megadott számú napon belüli belépési
168 +idők jelennek meg. A \fB-r\fR opció felülírja a \fB-u\fR opciót.
169 +.PP
170 +Ha a felhasználó még soha nem lépett be, akkor a terminál és az idő
171 +helyett a \fB**Never logged in**\fR felirat jelenik meg.
172 +.SH FÁJLOK
173 +/var/log/lastlog \- a felhasználók legutóbbi belépéseit tartalmazza
174 +.SH MEGJEGYZÉS
175 +Ha a felhasználói azonosító számok (UID-k) között nagyobb üres tartományok
176 +vannak, akkor a lastlog futásakor megtörténhet, hogy hosszabb ideig
177 +nem jelenik meg semmi a képernyőn (pl ha a 170-es és a 800-as azonosítójú
178 +felhasználók között nincs több azonosító, akkor a 171 és 799 közötti
179 +számok kiértékelése alatt a képernyőn nem változik semmi).
180 +.SH SZERZŐK
181 +Julianne Frances Haugh (jfh@tab.com)
182 +.br
183 +Phillip Street
184 +.SH MAGYAR FORDÍTÁS
185 +Hermann Benedek (bence@intercom.hu)
186 +
187 diff -urN sysvinit-2.86/man/intl/it/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/it/man8/lastlog.8
188 --- sysvinit-2.86/man/intl/it/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
189 +++ sysvinit-2.86-lastlog/man/intl/it/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
190 @@ -0,0 +1,76 @@
191 +.\" This file was generated with po4a. Translate the source file.
192 +.\" 
193 +.\"$Id$
194 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
195 +.\" All rights reserved.
196 +.\"
197 +.\" Redistribution and use in source and binary forms, with or without
198 +.\" modification, are permitted provided that the following conditions
199 +.\" are met:
200 +.\" 1. Redistributions of source code must retain the above copyright
201 +.\"    notice, this list of conditions and the following disclaimer.
202 +.\" 2. Redistributions in binary form must reproduce the above copyright
203 +.\"    notice, this list of conditions and the following disclaimer in the
204 +.\"    documentation and/or other materials provided with the distribution.
205 +.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
206 +.\"    may be used to endorse or promote products derived from this software
207 +.\"    without specific prior written permission.
208 +.\"
209 +.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
210 +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211 +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
212 +.\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
213 +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
214 +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
215 +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
216 +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
217 +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
218 +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
219 +.\" SUCH DAMAGE.
220 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
221 +.TH LASTLOG 8   
222 +.SH NOME
223 +lastlog \- esamina il file degli ultimi accessi
224 +.SH SINTASSI
225 +.TP 8
226 +\fBlastlog\fP [\fBopzioni\fP]
227 +.SH DESCRIZIONE
228 +.PP
229 +\fBlastlog\fP mostra il log degli ultimi accessi, contenuto nel file 
230 +\fI/var/log/lastlog\fP. Le informazioni mostrate sono il \fBnome utente\fP, la 
231 +\fBporta\fP, e la \fBdata dell'ultimo accesso\fP. Il comportamento predefinito 
232 +(nessuna opzione specificata) è di mostrare i record di ultimo accesso per 
233 +tutti gli utenti, nell'ordine in cui compaiono in \fB/etc/passwd\fP.
234 +.SH OPZIONI
235 +.TP
236 +Il comando \fBlastlog\fP accetta le seguenti opzioni:
237 +.IP "\fB\-h\fP, \fB\-\-help\fP"
238 +Mostra un messaggio di aiuto ed esce.
239 +.IP "\fB\-t\fP, \fB\-\-time\fP \fIGIORNI\fP"
240 +Mostra solo i record di ultimo accesso più recenti di un numero di 
241 +\fIGIORNI\fP.
242 +.IP "\fB\-u\fP, \fB\-\-user\fP \fILOGIN\fP"
243 +Mostra il record di ultimo accesso per l'utente specificato da \fILOGIN\fP.
244 +.TP
245 +L'opzione \fB\-t\fP ha la precedenza sull'uso di \fB\-u\fP.
246 +.PP
247 +Se l'utente non ha mai effettuato accessi al sistema viene mostrato, al 
248 +posto della porta e della data, il messaggio \fB"**Nessun accesso 
249 +effettuato**"\fP.
250 +.SH FILE
251 +\fI/var/log/lastlog\fP \- file di log degli ultimi accessi
252 +.SH AVVISI/CAVEAT
253 +Se ci sono dei grossi scarti tra i valori di UID, il programma lastlog può 
254 +restare in esecuzione per un tempo prolungato senza produrre output sullo 
255 +schermo (ad es. se mmdf=800 e l'ultimo UID vale 170, il programma sembrerà 
256 +bloccato come se esaminasse gli UID tra 171 e 799).
257 +.SH AUTORI
258 +Julianne Frances Haugh (jockgrrl@ix.netcom.com)
259 +.br
260 +Phillip Street
261 +.SH TRADUZIONE
262 +.nf
263 +Isabella Ruocco <isacher@nettaxi.com>, 1999
264 +Giuseppe Sacco <eppesuig@debian.org>, 2005
265 +Danilo Piazzalunga <danilopiazza@libero.it>, 2005
266 +.fi
267 diff -urN sysvinit-2.86/man/intl/ja/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/ja/man8/lastlog.8
268 --- sysvinit-2.86/man/intl/ja/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
269 +++ sysvinit-2.86-lastlog/man/intl/ja/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
270 @@ -0,0 +1,80 @@
271 +.\"$Id$
272 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
273 +.\" All rights reserved.
274 +.\"
275 +.\" Redistribution and use in source and binary forms, with or without
276 +.\" modification, are permitted provided that the following conditions
277 +.\" are met:
278 +.\" 1. Redistributions of source code must retain the above copyright
279 +.\"    notice, this list of conditions and the following disclaimer.
280 +.\" 2. Redistributions in binary form must reproduce the above copyright
281 +.\"    notice, this list of conditions and the following disclaimer in the
282 +.\"    documentation and/or other materials provided with the distribution.
283 +.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
284 +.\"    may be used to endorse or promote products derived from this software
285 +.\"    without specific prior written permission.
286 +.\"
287 +.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
288 +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
289 +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
290 +.\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
291 +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
292 +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
293 +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
294 +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
295 +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
296 +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
297 +.\" SUCH DAMAGE.
298 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
299 +.\"
300 +.\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
301 +.\"         all rights reserved.
302 +.\" Translated Fri Feb 14 23:06:00 JST 1997
303 +.\"         by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
304 +.\" Updated & Modified Thu Oct 14 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
305 +.\" Updated Fri Jan 12 2001 by Kentaro Shirakata <argrath@ub32.org>
306 +.\" Updated Mon Mar  4 2002 by kentaro Shirakata <argrath@ub32.org>
307 +.\" Modified Sat 21 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
308 +.\"
309 +.TH LASTLOG 8
310 +.SH 名前
311 +lastlog \- lastlog ファイルを調べる
312 +.SH 書式
313 +.TP 8
314 +\fBlastlog\fR [(\fB\-u\fR|\fB\-\-user\fR) \fIlogin\fR]
315 +[(\fB\-t\fR|\fB\-\-time\fR) \fIdays\fR] [(\fB\-h\fR|\fB\-\-help\fR)]
316 +.SH 説明
317 +\fBlastlog\fR は最終ログインの記録ファイル
318 +\fI/var/log/lastlog\fR の内容を整形して表示する。
319 +\fBログイン名\fR・\fBポート\fR・\fB最終ログイン時刻\fR、が表示される。
320 +オプションを指定しなかった場合、デフォルトでは
321 +lastlog エントリを UID の数値でソートして表示する。
322 +.TP
323 +\fB\-u\fR, \fB\-\-user\fR \fIlogin\-name\fR
324 +\fIlogin\-name\fR の記録だけを表示する。
325 +.TP
326 +\fB\-t\fR, \fB\-\-time\fR \fIdays\fR
327 +最近 \fIdays\fR 日以内の最終ログインを表示する。
328 +.TP
329 +\fB\-h\fR, \fB\-\-help\fR
330 +オンラインヘルプを表示して終了する。
331 +.PP
332 +\fB\-u\fR フラグを用いると \fB\-t\fR は無視される。
333 +.\"nakano というのが実際の動作のように見えるのだが。
334 +.PP
335 +一度もログインしていないユーザに対しては、
336 +ポートと時刻の代わりに
337 +\fB"**Never logged in**"\fR
338 +というメッセージが表示される。
339 +.SH ファイル
340 +\fI/var/log/lastlog\fR \- lastlog 記録ファイル
341 +.SH 警告
342 +UID 番号に大きな飛びがあると、
343 +lastlog プログラムは長時間画面に何も出力しないまま
344 +実行を続ける (例えば mmdf が 800 で最後の UID が 170 の場合、
345 +UID が 171\-799 の間プログラムは何も出力しないので、
346 +ハングしたように見える)。
347 +.SH 著者
348 +Julianne Frances Haugh (jockgrrl@ix.netcom.com)
349 +.BR
350 +Phillip Street
351 diff -urN sysvinit-2.86/man/intl/pl/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/pl/man8/lastlog.8
352 --- sysvinit-2.86/man/intl/pl/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
353 +++ sysvinit-2.86-lastlog/man/intl/pl/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
354 @@ -0,0 +1,69 @@
355 +.\"     Title: lastlog
356 +.\"    Author: 
357 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
358 +.\"      Date: 19/06/2006
359 +.\"    Manual: Polecenia Zarządzania Systemem
360 +.\"    Source: Polecenia Zarządzania Systemem
361 +.\"
362 +.TH "LASTLOG" "8" "19/06/2006" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
363 +.\" disable hyphenation
364 +.nh
365 +.\" disable justification (adjust text to left margin only)
366 +.ad l
367 +.SH "NAZWA"
368 +lastlog \- wyświetla informacje o ostanim logowaniu dla wybranego lub wszystkich użytkowaników
369 +.SH "SKŁADNIA"
370 +.HP 8
371 +\fBlastlog\fR [\fIopcje\fR]
372 +.SH "OPIS"
373 +.PP
374 +Polecenie
375 +\fBlastlog\fR
376 +formatuje i wyświetla zawartość bazy ostatnich logowań zapisanych w pliku
377 +\fI/var/log/lastlog\fR. Wyświetlone zostaną
378 +\fInazwa użytkownika\fR,
379 +\fIport\fR
380 +i
381 +\fIczas\fR
382 +ostatniego logowania. Domyślnie (bez flag) pozycje wyświetlane są w kolejności w jakiej są w pliku
383 +\fI/etc/passwd\fR.
384 +.SH "OPCJE"
385 +.PP
386 +Polecenie
387 +\fBlastlog\fR
388 +posiada następujące opcje:
389 +.TP 3n
390 +\fB\-b\fR, \fB\-\-before\fR\fIDNI\fR
391 +Wyświetlenie rekordów lastlog starszych niż zadana
392 +\fIDNI\fR.
393 +.TP 3n
394 +\fB\-h\fR, \fB\-\-help\fR
395 +Wyświetlenie komunikatu pomocy i zakończenie działania.
396 +.TP 3n
397 +\fB\-t\fR, \fB\-\-time\fR\fIDNI\fR
398 +Wyświetlenie rekordów lastlog nie starszych niż zadana ilość
399 +\fIDNI\fR.
400 +.TP 3n
401 +\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR
402 +Wyświetlenie informacji o ostanim logowaniu dla użytkownika
403 +\fILOGIN\fR.
404 +.TP 3n
405 +Opcja \fB\-t\fR przesłania użycie opcji \fB\-u\fR.
406 +.PP
407 +Jeżeli użytkownik nigdy się nie logował to zamiast portu i czasu logowania wyświetlany jest komunikat
408 +\fI**Nigdy nie zalogowany**\fR
409 +(użytkownik nigdy się nie logował).
410 +.SH "UWAGI"
411 +.PP
412 +Baza danych
413 +\fIlastlog\fR
414 +jest plikiem zawierajacym informacje o ostanim logowaniu każdego użytkowanika. Pliku tego nie powinnoa się okresowo kasować i zakąłdać od nowa (rotacja). Plik ten jest plikiem z dziurami tak więc jego rozmiar jest zwykle znacznie mniejszy pokazywany przez polecenie "\fBls \-l\fR" (pokazujące że jest on dużych rozmiarów jeżeli masz w
415 +\fIpasswd\fR
416 +użytkowaników z wysokimi wartościami UID). Mozesz wyświetlić rzeczywisty rozmiar tego pliku używając polecenia "\fBls \-s\fR".
417 +.SH "PLIKI"
418 +.TP 3n
419 +\fI/var/log/lastlog\fR
420 +Baza danych ostatnich logowań użytkowników.
421 +.SH "OSTRZEŻENIA"
422 +.PP
423 +Duże luki w numeracji UID powodują, że program będzie pracował dłużej, nie wyświetlając wyników (np. jeśli w bazie lastlog nie ma wpisów dla o UID pomiedzy 170, a 800, to program będzie sprawiał wrażenie zawieszonego w trakcie przetwarzania wpisów dla użytkowanikół o UID 171\-799).
424 diff -urN sysvinit-2.86/man/intl/ru/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/ru/man8/lastlog.8
425 --- sysvinit-2.86/man/intl/ru/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
426 +++ sysvinit-2.86-lastlog/man/intl/ru/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
427 @@ -0,0 +1,64 @@
428 +.\"     Title: lastlog
429 +.\"    Author: 
430 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
431 +.\"      Date: 06/24/2006
432 +.\"    Manual: Команды управления системой
433 +.\"    Source: Команды управления системой
434 +.\"
435 +.TH "lastlog" "8" "06/24/2006" "Команды управления системой" "Команды управления системой"
436 +.\" disable hyphenation
437 +.nh
438 +.\" disable justification (adjust text to left margin only)
439 +.ad l
440 +.SH "НАЗВАНИЕ"
441 +lastlog \- выводит отчёт о последней регистрации в системе всех или указанного пользователя
442 +.SH "СИНТАКСИС"
443 +.HP 8
444 +\fBlastlog\fR [\fIпараметры\fR]
445 +.SH "ОПИСАНИЕ"
446 +.PP
447 +Программа
448 +\fBlastlog\fR
449 +упорядочивает и выводит содержимое файла
450 +\fI/var/log/lastlog\fR, который содержит даты последнего входа пользователей систему. Выводятся
451 +\fIимя пользователя\fR,
452 +\fIпорт\fR
453
454 +\fIдата последнего входа в систему\fR. По умолчанию (вызов без параметров) показываются записи файла lastlog, отсортированные согласно расположению пользователей в файле
455 +\fI/etc/passwd\fR.
456 +.SH "ПАРАМЕТРЫ"
457 +.PP
458 +Параметры команды
459 +\fBlastlog\fR:
460 +.TP 3n
461 +\fB\-b\fR, \fB\-\-before\fR\fIДНЕЙ\fR
462 +Показать записи lastlog за последние
463 +\fIДНЕЙ\fR.
464 +.TP 3n
465 +\fB\-h\fR, \fB\-\-help\fR
466 +Показать краткую справку и закончить работу.
467 +.TP 3n
468 +\fB\-t\fR, \fB\-\-time\fR\fIДНЕЙ\fR
469 +Показать записи lastlog новее чем
470 +\fIДНЕЙ\fR.
471 +.TP 3n
472 +\fB\-u\fR, \fB\-\-user\fR\fIИМЯ\fR
473 +Показать запись lastlog только для указанного пользователя с emphasis remap="I">ИМЕНЕМ
474 +.TP 3n
475 +Параметр \fB\-t\fR отменяет действие параметра \fB\-u\fR.
476 +.PP
477 +Если пользователь никогда не регистрировался в системе, то будет показано сообщение
478 +\fI** Никогда не входил в систему**\fR
479 +вместо названия порта и даты.
480 +.SH "ЗАМЕЧАНИЕ"
481 +.PP
482 +Файл
483 +\fIlastlog\fR
484 +содержит информацию о последней регистрации в системе каждого пользователя. Вы не должны применять к нему ротацию журнальных файлов. Этот файл является разреженным, поэтому его размер на диске гораздо меньше, чем показывает команда "\fBls \-l\fR" (которая может показывать, что это очень большой файл, если значения идентификаторов пользователей в системе достигают больших значений). Чтобы увидеть реальный размер введите "\fBls \-s\fR".
485 +.SH "ФАЙЛЫ"
486 +.TP 3n
487 +\fI/var/log/lastlog\fR
488 +содержит список завершённых сеансов работы с системой
489 +.SH "ПРЕДОСТЕРЕЖЕНИЯ"
490 +.PP
491 +Большие промежутки в значениях идентификаторов пользователей приводят к тому, что программа некоторое время ничего не выводит на экран (то есть, если в базе данных lastlog нет пользователей с идентификаторами с 170 по 800, то во время обработки UID с 171 по 799 программа кажется повисшей).
492 diff -urN sysvinit-2.86/man/intl/sv/man8/lastlog.8 sysvinit-2.86-lastlog/man/intl/sv/man8/lastlog.8
493 --- sysvinit-2.86/man/intl/sv/man8/lastlog.8    1970-01-01 01:00:00.000000000 +0100
494 +++ sysvinit-2.86-lastlog/man/intl/sv/man8/lastlog.8    2006-08-03 12:00:56.000000000 +0200
495 @@ -0,0 +1,70 @@
496 +.\"     Title: lastlog
497 +.\"    Author: 
498 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
499 +.\"      Date: 20.07.2006
500 +.\"    Manual: Systemhanteringskommandon
501 +.\"    Source: Systemhanteringskommandon
502 +.\"
503 +.TH "LASTLOG" "8" "20\-07\-2006" "Systemhanteringskommandon" "Systemhanteringskommandon"
504 +.\" disable hyphenation
505 +.nh
506 +.\" disable justification (adjust text to left margin only)
507 +.ad l
508 +.SH "NAMN"
509 +lastlog \- reports the most recent login of all users or of a given user
510 +.SH "SYNOPSIS"
511 +.HP 8
512 +\fBlastlog\fR [\fIflaggor\fR]
513 +.SH "BESKRIVNING"
514 +.PP
515 +
516 +\fBlastlog\fR
517 +formats and prints the contents of the last login log
518 +\fI/var/log/lastlog\fR
519 +file. The
520 +\fIlogin\-name\fR,
521 +\fIport\fR, and
522 +\fIlast login time\fR
523 +will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
524 +\fI/etc/passwd\fR.
525 +.SH "FLAGGOR"
526 +.PP
527 +Flaggorna som gäller för kommandot
528 +\fBlastlog\fR
529 +är:
530 +.TP 3n
531 +\fB\-b\fR, \fB\-\-before\fR\fIDAGAR\fR
532 +Print only lastlog records older than
533 +\fIDAYS\fR.
534 +.TP 3n
535 +\fB\-h\fR, \fB\-\-help\fR
536 +Visa hjälpmeddelande och avsluta.
537 +.TP 3n
538 +\fB\-t\fR, \fB\-\-time\fR\fIDAGAR\fR
539 +Print the lastlog records more recent than
540 +\fIDAYS\fR.
541 +.TP 3n
542 +\fB\-u\fR, \fB\-\-user\fR\fIINLOGGNINGSNAMN\fR
543 +Print the lastlog record for user with specified
544 +\fILOGIN\fR
545 +only.
546 +.TP 3n
547 +Flaggan \fB\-t\fR åsidosätter användningen av \fB\-u\fR.
548 +.PP
549 +If the user has never logged in the message
550 +\fI** Never logged in**\fR
551 +will be displayed instead of the port and time.
552 +.SH "NOTERA"
553 +.PP
554 +The
555 +\fIlastlog\fR
556 +file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "\fBls \-l\fR" (which can indicate a really big file if you have in
557 +\fIpasswd\fR
558 +users with a high UID). You can display its real size with "\fBls \-s\fR".
559 +.SH "FILER"
560 +.TP 3n
561 +\fI/var/log/lastlog\fR
562 +Databastider för tidigare användarinloggningar.
563 +.SH "TÄNK PÅ"
564 +.PP
565 +Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i.e. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171\-799).
566 diff -urN sysvinit-2.86/man/lastlog.8 sysvinit-2.86-lastlog/man/lastlog.8
567 --- sysvinit-2.86/man/lastlog.8 1970-01-01 01:00:00.000000000 +0100
568 +++ sysvinit-2.86-lastlog/man/lastlog.8 2006-07-30 22:53:59.000000000 +0200
569 @@ -0,0 +1,70 @@
570 +.\"     Title: lastlog
571 +.\"    Author: 
572 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
573 +.\"      Date: 07/30/2006
574 +.\"    Manual: System Management Commands
575 +.\"    Source: System Management Commands
576 +.\"
577 +.TH "LASTLOG" "8" "07/30/2006" "System Management Commands" "System Management Commands"
578 +.\" disable hyphenation
579 +.nh
580 +.\" disable justification (adjust text to left margin only)
581 +.ad l
582 +.SH "NAME"
583 +lastlog \- reports the most recent login of all users or of a given user
584 +.SH "SYNOPSIS"
585 +.HP 8
586 +\fBlastlog\fR [\fIoptions\fR]
587 +.SH "DESCRIPTION"
588 +.PP
589 +
590 +\fBlastlog\fR
591 +formats and prints the contents of the last login log
592 +\fI/var/log/lastlog\fR
593 +file. The
594 +\fIlogin\-name\fR,
595 +\fIport\fR, and
596 +\fIlast login time\fR
597 +will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
598 +\fI/etc/passwd\fR.
599 +.SH "OPTIONS"
600 +.PP
601 +The options which apply to the
602 +\fBlastlog\fR
603 +command are:
604 +.TP 3n
605 +\fB\-b\fR, \fB\-\-before\fR \fIDAYS\fR
606 +Print only lastlog records older than
607 +\fIDAYS\fR.
608 +.TP 3n
609 +\fB\-h\fR, \fB\-\-help\fR
610 +Display help message and exit.
611 +.TP 3n
612 +\fB\-t\fR, \fB\-\-time\fR \fIDAYS\fR
613 +Print the lastlog records more recent than
614 +\fIDAYS\fR.
615 +.TP 3n
616 +\fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR
617 +Print the lastlog record for user with specified
618 +\fILOGIN\fR
619 +only.
620 +.TP 3n
621 +The \fB\-t\fR flag overrides the use of \fB\-u\fR.
622 +.PP
623 +If the user has never logged in the message
624 +\fI** Never logged in**\fR
625 +will be displayed instead of the port and time.
626 +.SH "NOTE"
627 +.PP
628 +The
629 +\fIlastlog\fR
630 +file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "\fBls \-l\fR" (which can indicate a really big file if you have in
631 +\fIpasswd\fR
632 +users with a high UID). You can display its real size with "\fBls \-s\fR".
633 +.SH "FILES"
634 +.TP 3n
635 +\fI/var/log/lastlog\fR
636 +Database times of previous user logins.
637 +.SH "CAVEATS"
638 +.PP
639 +Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i.e. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171\-799).
640 diff -urN sysvinit-2.86/src/Makefile sysvinit-2.86-lastlog/src/Makefile
641 --- sysvinit-2.86/src/Makefile  2007-08-22 17:02:49.000000000 +0200
642 +++ sysvinit-2.86-lastlog/src/Makefile  2007-08-22 16:57:59.000000000 +0200
643 @@ -16,12 +16,12 @@
644  
645  # For some known distributions we do not build all programs, otherwise we do.
646  BIN    =
647 -SBIN   = init halt shutdown runlevel killall5
648 +SBIN   = init halt shutdown runlevel killall5 lastlog
649  USRBIN = last mesg
650  
651  MAN1   = last.1 lastb.1 mesg.1
652  MAN5   = initscript.5 inittab.5
653 -MAN8   = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
654 +MAN8   = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8 lastlog.8
655  MAN8   += shutdown.8 telinit.8
656  
657  ifeq ($(DISTRO),)
658 @@ -66,6 +66,9 @@
659  last:          last.o oldutmp.h
660                 $(CC) $(LDFLAGS) -o $@ last.o
661  
662 +lastlog:       lastlog.o
663 +               $(CC) $(LDFLAGS) -o $@ lastlog.o
664 +
665  mesg:          mesg.o
666                 $(CC) $(LDFLAGS) -o $@ mesg.o
667  
668 diff -urN sysvinit-2.86/src/lastlog.c sysvinit-2.86-lastlog/src/lastlog.c
669 --- sysvinit-2.86/src/lastlog.c 1970-01-01 01:00:00.000000000 +0100
670 +++ sysvinit-2.86-lastlog/src/lastlog.c 2007-08-22 16:52:15.000000000 +0200
671 @@ -0,0 +1,217 @@
672 +/*
673 + * Copyright 1989 - 1994, Julianne Frances Haugh
674 + * All rights reserved.
675 + *
676 + * Redistribution and use in source and binary forms, with or without
677 + * modification, are permitted provided that the following conditions
678 + * are met:
679 + * 1. Redistributions of source code must retain the above copyright
680 + *    notice, this list of conditions and the following disclaimer.
681 + * 2. Redistributions in binary form must reproduce the above copyright
682 + *    notice, this list of conditions and the following disclaimer in the
683 + *    documentation and/or other materials provided with the distribution.
684 + * 3. Neither the name of Julianne F. Haugh nor the names of its contributors
685 + *    may be used to endorse or promote products derived from this software
686 + *    without specific prior written permission.
687 + *
688 + * THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
689 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
690 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
691 + * ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
692 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
693 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
694 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
695 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
696 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
697 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
698 + * SUCH DAMAGE.
699 + */
700 +
701 +#ident "$Id$"
702 +
703 +#include <getopt.h>
704 +#include <lastlog.h>
705 +#include <pwd.h>
706 +#include <stdio.h>
707 +#include <sys/stat.h>
708 +#include <sys/types.h>
709 +#include <time.h>
710 +#include <stdlib.h>
711 +/*
712 + * Needed for MkLinux DR1/2/2.1 - J.
713 + */
714 +#ifndef LASTLOG_FILE
715 +#define LASTLOG_FILE "/var/log/lastlog"
716 +#endif
717 +/*
718 + * Global variables
719 + */
720 +static FILE *lastlogfile;      /* lastlog file stream */
721 +static off_t user;             /* one single user, specified on command line */
722 +static int days;               /* number of days to consider for print command */
723 +static time_t seconds;         /* that number of days in seconds */
724 +static int inverse_days;       /* number of days to consider for print command */
725 +static time_t inverse_seconds; /* that number of days in seconds */
726 +
727 +
728 +static int uflg = 0;           /* set if user is a valid user id */
729 +static int tflg = 0;           /* print is restricted to most recent days */
730 +static int bflg = 0;           /* print excludes most recent days */
731 +static struct lastlog lastlog; /* scratch structure to play with ... */
732 +static struct stat statbuf;    /* fstat buffer for file size */
733 +static struct passwd *pwent;
734 +
735 +#define        NOW     (time ((time_t *) 0))
736 +
737 +static void usage (void)
738 +{
739 +       fprintf (stdout, "Usage: lastlog [options]\n"
740 +                          "\n"
741 +                          "Options:\n"
742 +                          "  -b, --before DAYS print only lastlog records older than DAYS\n"
743 +                          "  -h, --help                display this help message and exit\n"
744 +                          "  -t, --time DAYS   print only lastlog records more recent than DAYS\n"
745 +                          "  -u, --user LOGIN  print lastlog record for user with specified LOGIN\n"
746 +                          "\n");
747 +       exit(1);
748 +}
749 +
750 +static void print_one (const struct passwd *pw)
751 +{
752 +       static int once;
753 +       char *cp;
754 +       struct tm *tm;
755 +       time_t ll_time;
756 +
757 +#ifdef HAVE_STRFTIME
758 +       char ptime[80];
759 +#endif
760 +
761 +       if (!pw)
762 +               return;
763 +
764 +       if (!once) {
765 +#ifdef HAVE_LL_HOST
766 +               printf ("Username         Port     From             Latest\n");
767 +#else
768 +               printf ("Username                Port     Latest\n");
769 +#endif
770 +               once++;
771 +       }
772 +       ll_time = lastlog.ll_time;
773 +       tm = localtime (&ll_time);
774 +#ifdef HAVE_STRFTIME
775 +       strftime (ptime, sizeof (ptime), "%a %b %e %H:%M:%S %z %Y", tm);
776 +       cp = ptime;
777 +#else
778 +       cp = asctime (tm);
779 +       cp[24] = '\0';
780 +#endif
781 +
782 +       if (lastlog.ll_time == (time_t) 0)
783 +               cp = "**Never logged in**\0";
784 +
785 +#ifdef HAVE_LL_HOST
786 +       printf ("%-16s %-8.8s %-16.16s %s\n", pw->pw_name,
787 +               lastlog.ll_line, lastlog.ll_host, cp);
788 +#else
789 +       printf ("%-16s\t%-8.8s %s\n", pw->pw_name, lastlog.ll_line, cp);
790 +#endif
791 +}
792 +
793 +static void print (void)
794 +{
795 +       off_t offset;
796 +
797 +       if (uflg) {
798 +               offset = user * sizeof lastlog;
799 +
800 +               if (fstat (fileno (lastlogfile), &statbuf)) {
801 +                       perror (LASTLOG_FILE);
802 +                       return;
803 +               }
804 +               if (offset >= statbuf.st_size)
805 +                       return;
806 +
807 +               fseeko (lastlogfile, offset, SEEK_SET);
808 +               if (fread ((char *) &lastlog, sizeof lastlog, 1,
809 +                          lastlogfile) == 1)
810 +                       print_one (pwent);
811 +               else
812 +                       perror (LASTLOG_FILE);
813 +       } else {
814 +               setpwent ();
815 +               while ((pwent = getpwent ())) {
816 +                       user = pwent->pw_uid;
817 +                       offset = user * sizeof lastlog;
818 +
819 +                       fseeko (lastlogfile, offset, SEEK_SET);
820 +                       if (fread ((char *) &lastlog, sizeof lastlog, 1,
821 +                                  lastlogfile) != 1)
822 +                               continue;
823 +
824 +                       if (tflg && NOW - lastlog.ll_time > seconds)
825 +                               continue;
826 +
827 +                       if (bflg && NOW - lastlog.ll_time < inverse_seconds)
828 +                               continue;
829 +
830 +                       print_one (pwent);
831 +               }
832 +       }
833 +}
834 +
835 +int main (int argc, char **argv)
836 +{
837 +       int c;
838 +       static struct option const longopts[] = {
839 +               {"help", no_argument, NULL, 'h'},
840 +               {"time", required_argument, NULL, 't'},
841 +               {"before", required_argument, NULL, 'b'},
842 +               {"user", required_argument, NULL, 'u'},
843 +               {NULL, 0, NULL, '\0'}
844 +       };
845 +
846 +       while ((c = getopt_long (argc, argv, "ht:b:u:", longopts, NULL)) != -1) {
847 +               switch (c) {
848 +               case 'h':
849 +                       usage ();
850 +                       break;
851 +               case 't':
852 +                       days = atoi (optarg);
853 +                       seconds = days * (24L*3600L);
854 +                       tflg++;
855 +                       break;
856 +               case 'b':
857 +                       inverse_days = atoi (optarg);
858 +                       inverse_seconds = inverse_days * (24L*3600L);
859 +                       bflg++;
860 +                       break;
861 +               case 'u':
862 +                       pwent = getpwnam (optarg);
863 +                       if (!pwent) {
864 +                               fprintf (stderr, "Unknown User: %s\n", optarg);
865 +                               exit (1);
866 +                       }
867 +                       uflg++;
868 +                       user = pwent->pw_uid;
869 +                       break;
870 +               default:
871 +                       usage ();
872 +                       break;
873 +               }
874 +       }
875 +       if (argc > optind) {
876 +               fprintf (stderr, "lastlog: unexpected argument: %s\n", argv[optind]);
877 +               usage();
878 +       }
879 +
880 +       if ((lastlogfile = fopen (LASTLOG_FILE, "r")) == (FILE *) 0) {
881 +               perror (LASTLOG_FILE);
882 +               exit (1);
883 +       }
884 +
885 +       print ();
886 +       fclose (lastlogfile);
887 +       exit (0);
888 +}
This page took 0.21695 seconds and 3 git commands to generate.