FreeBSD Bugzilla – Attachment 12768 Details for
Bug 24540
add '-c' flag to src/bin/domainname to clear domainname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 750 bytes, created by
Pete Fritchman
on 2001-01-22 18:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Pete Fritchman
Created:
2001-01-22 18:30:00 UTC
Size:
750 bytes
patch
obsolete
>Index: domainname.c >=================================================================== >RCS file: /home/ncvs/src/bin/domainname/domainname.c,v >retrieving revision 1.12 >diff -u -r1.12 domainname.c >--- domainname.c 1999/08/27 23:14:08 1.12 >+++ domainname.c 2001/01/22 18:17:49 >@@ -63,8 +63,13 @@ > int ch; > char domainname[MAXHOSTNAMELEN]; > >- while ((ch = getopt(argc, argv, "")) != -1) >+ while ((ch = getopt(argc, argv, "c")) != -1) > switch (ch) { >+ case 'c': >+ if (setdomainname("", 1)) >+ err(1, "setdomainname"); >+ exit(0); >+ break; > default: > usage(); > } >@@ -88,6 +93,6 @@ > void > usage() > { >- (void)fprintf(stderr, "usage: domainname [ypdomain]\n"); >+ (void)fprintf(stderr, "usage: domainname [-c] [ypdomain]\n"); > exit(1); > }
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 24540
:
12767
| 12768