FreeBSD Bugzilla – Attachment 15543 Details for
Bug 28789
[patch] last(1) does not filter for uucp connects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.50 KB, created by
wolfgang
on 2001-07-07 11:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
wolfgang
Created:
2001-07-07 11:20:00 UTC
Size:
2.50 KB
patch
obsolete
>*** last.c.org Mon Mar 12 02:41:21 2001 >--- last.c Sat Jul 7 11:09:54 2001 >*************** >*** 69,74 **** >--- 69,75 ---- > #define HOST_TYPE -2 > #define TTY_TYPE -3 > #define USER_TYPE -4 >+ #define TTYG_TYPE -5 > int type; /* type of arg */ > struct arg *next; /* linked list pointer */ > } ARG; >*************** >*** 99,105 **** > usage(void) > { > (void)fprintf(stderr, >! "usage: last [-#] [-f file] [-h hostname] [-t tty] [-s|w] [user ...]\n"); > exit(1); > } > >--- 100,106 ---- > usage(void) > { > (void)fprintf(stderr, >! "usage: last [-#] [-f file] [-h hostname] [-t tty] [-T ttytype] [-s|w] [user ...]\n"); > exit(1); > } > >*************** >*** 114,120 **** > (void) setlocale(LC_TIME, ""); > > maxrec = -1; >! while ((ch = getopt(argc, argv, "0123456789f:h:st:w")) != -1) > switch (ch) { > case '0': case '1': case '2': case '3': case '4': > case '5': case '6': case '7': case '8': case '9': >--- 115,121 ---- > (void) setlocale(LC_TIME, ""); > > maxrec = -1; >! while ((ch = getopt(argc, argv, "0123456789f:h:st:wT:")) != -1) > switch (ch) { > case '0': case '1': case '2': case '3': case '4': > case '5': case '6': case '7': case '8': case '9': >*************** >*** 148,153 **** >--- 149,157 ---- > case 'w': > width = 8; > break; >+ case 'T': >+ addarg(TTYG_TYPE, ttyconv(optarg)); >+ break; > case '?': > default: > usage(); >*************** >*** 349,354 **** >--- 353,362 ---- > break; > case USER_TYPE: > if (!strncmp(step->name, bp->ut_name, UT_NAMESIZE)) >+ return (YES); >+ break; >+ case TTYG_TYPE: >+ if (!strncmp(step->name, bp->ut_line, strlen(step->name))) > return (YES); > break; > } >*** last.1.org Thu Dec 14 10:54:46 2000 >--- last.1 Sat Jul 7 11:12:30 2001 >*************** >*** 45,50 **** >--- 45,51 ---- > .Op Fl h Ar host > .Op Fl s > .Op Fl t Ar tty >+ .Op Fl T Ar ttytype > .Op Fl w > .Op user ... > .Sh DESCRIPTION >*************** >*** 52,57 **** >--- 53,59 ---- > will list the sessions of specified > .Ar users , > .Ar ttys , >+ .Ar ttytypes , > and > .Ar hosts , > in reverse time order. Each line of output contains >*************** >*** 87,92 **** >--- 89,102 ---- > is > equivalent to > .Dq Li "last -t tty03" . >+ .It Fl T Ar ttytype >+ Specify the >+ .Ar tty type . >+ Tty type in this context is the start of the tty name, so you can ask for >+ groups of ttys, e.g., >+ .Dq Li "last -T cua" . >+ This is especially usefull for pseudo tty names like >+ .Dq "uucp" . > .It Fl w > Widen the duration field to show seconds, as well as the > default days, hours and minutes.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28789
: 15543