FreeBSD Bugzilla – Attachment 5486 Details for
Bug 13073
Extensions to mesg(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.16 KB, created by
howardjp
on 1999-08-11 13:30:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
howardjp
Created:
1999-08-11 13:30:04 UTC
Size:
2.16 KB
patch
obsolete
>diff -c /usr/src/usr.bin/mesg/mesg.1 /usr/local/src/usr.bin/mesg/mesg.1 >*** /usr/src/usr.bin/mesg/mesg.1 Thu Jul 24 06:59:00 1997 >--- /usr/local/src/usr.bin/mesg/mesg.1 Wed Aug 11 00:36:42 1999 >*************** >*** 40,45 **** >--- 40,46 ---- > .Nd display (do not display) messages from other users > .Sh SYNOPSIS > .Nm >+ .Op Fl t Ar tty > .Op Cm n | Cm y > .Sh DESCRIPTION > The >*************** >*** 54,60 **** > may display messages on the terminal. > .Pp > Options available: >! .Bl -tag -width flag > .It Cm n > Disallows messages. > .It Cm y >--- 55,65 ---- > may display messages on the terminal. > .Pp > Options available: >! .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 > Disallows messages. > .It Cm y >diff -c /usr/src/usr.bin/mesg/mesg.c /usr/local/src/usr.bin/mesg/mesg.c >*** /usr/src/usr.bin/mesg/mesg.c Thu Jul 24 06:59:00 1997 >--- /usr/local/src/usr.bin/mesg/mesg.c Wed Aug 11 00:33:53 1999 >*************** >*** 54,59 **** >--- 54,60 ---- > #include <sys/stat.h> > > #include <err.h> >+ #include <paths.h> > #include <stdio.h> > #include <stdlib.h> > #include <string.h> >*************** >*** 70,77 **** > char *tty; > int ch; > >! while ((ch = getopt(argc, argv, "")) != -1) > switch (ch) { > case '?': > default: > usage(); >--- 71,82 ---- > char *tty; > int ch; > >! tty = NULL; >! while ((ch = getopt(argc, argv, "t:")) != -1) > switch (ch) { >+ case 't': >+ tty = optarg; >+ break; > case '?': > default: > usage(); >*************** >*** 79,86 **** > argc -= optind; > argv += optind; > >! if ((tty = ttyname(STDERR_FILENO)) == NULL) >! err(1, "ttyname"); > if (stat(tty, &sb) < 0) > err(1, "%s", tty); > >--- 84,93 ---- > argc -= optind; > argv += optind; > >! if (tty == NULL) >! if ((tty = ttyname(STDERR_FILENO)) == NULL) >! err(1, "ttyname"); >! (void)chdir(_PATH_DEV); > if (stat(tty, &sb) < 0) > err(1, "%s", tty); > >*************** >*** 111,116 **** > static void > usage() > { >! (void)fprintf(stderr, "usage: mesg [y | n]\n"); > exit(2); > } >--- 118,123 ---- > static void > usage() > { >! (void)fprintf(stderr, "usage: mesg [-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 13073
: 5486