FreeBSD Bugzilla – Attachment 5485 Details for
Bug 13072
Extensions to biff(1)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.15 KB, created by
howardjp
on 1999-08-11 13:30:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
howardjp
Created:
1999-08-11 13:30:03 UTC
Size:
2.15 KB
patch
obsolete
>diff -c /usr/src/usr.bin/biff/biff.1 /usr/local/src/usr.bin/biff/biff.1 >*** /usr/src/usr.bin/biff/biff.1 Mon Jun 23 06:45:37 1997 >--- /usr/local/src/usr.bin/biff/biff.1 Wed Aug 11 00:22:55 1999 >*************** >*** 40,45 **** >--- 40,46 ---- > .Nd "be notified if mail arrives and who it is from" > .Sh SYNOPSIS > .Nm biff >+ .Op Fl t Ar tty > .Op Cm n | y > .Sh DESCRIPTION > .Nm Biff >*************** >*** 48,54 **** > .Pp > Options supported by > .Nm biff : >! .Bl -tag -width 4n > .It Cm n > Disables notification. > .It Cm y >--- 49,59 ---- > .Pp > Options supported by > .Nm biff : >! .Bl -tag -width 8n >! .It Fl t Ar tty >! Report or change the status of >! .Ar tty >! rather than the current terminal. > .It Cm n > Disables notification. > .It Cm y >diff -c /usr/src/usr.bin/biff/biff.c /usr/local/src/usr.bin/biff/biff.c >*** /usr/src/usr.bin/biff/biff.c Sun Dec 6 22:58:12 1998 >--- /usr/local/src/usr.bin/biff/biff.c Wed Aug 11 00:30:25 1999 >*************** >*** 46,51 **** >--- 46,52 ---- > #include <sys/types.h> > #include <sys/stat.h> > #include <errno.h> >+ #include <paths.h> > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> >*************** >*** 63,71 **** > int ch; > char *name; > >! >! while ((ch = getopt(argc, argv, "")) != -1) > switch(ch) { > case '?': > default: > usage(); >--- 64,75 ---- > int ch; > char *name; > >! name = NULL; >! while ((ch = getopt(argc, argv, "t:")) != -1) > switch(ch) { >+ case 't': >+ name = optarg; >+ break; > case '?': > default: > usage(); >*************** >*** 73,81 **** > argc -= optind; > argv += optind; > >! if ((name = ttyname(STDERR_FILENO)) == NULL) >! err(2, "unknown tty"); > > if (stat(name, &sb)) > err(2, "stat"); > >--- 77,87 ---- > argc -= optind; > argv += optind; > >! if (name == NULL) >! if ((name = ttyname(STDERR_FILENO)) == NULL) >! err(2, "unknown tty"); > >+ (void)chdir(_PATH_DEV); > if (stat(name, &sb)) > err(2, "stat"); > >*************** >*** 102,107 **** > static void > usage() > { >! (void)fprintf(stderr, "usage: biff [y | n]\n"); > exit(2); > } >--- 108,113 ---- > static void > usage() > { >! (void)fprintf(stderr, "usage: biff [-t tty] [y | n]\n"); > exit(2); > }
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 13072
: 5485