projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59870e8
)
Fix for hostname -s, by Stephan Linz
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 10 Nov 2002 22:07:48 +0000
(22:07 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 10 Nov 2002 22:07:48 +0000
(22:07 -0000)
networking/hostname.c
patch
|
blob
|
history
diff --git
a/networking/hostname.c
b/networking/hostname.c
index b2c3fef8937eecf2f68c149cd3dfd76bbd6367e3..f7c9fc426618181f4d84adde965b05f09366d530 100644
(file)
--- a/
networking/hostname.c
+++ b/
networking/hostname.c
@@
-1,6
+1,6
@@
/* vi: set sw=4 ts=4: */
/*
- * $Id: hostname.c,v 1.3
3 2002/10/18 22:13:23 andersen
Exp $
+ * $Id: hostname.c,v 1.3
4 2002/11/10 22:07:48 bug1
Exp $
* Mini hostname implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@
-104,7
+104,7
@@
int hostname_main(int argc, char **argv)
if (p != NULL) {
*p = 0;
}
- puts(
buf
);
+ puts(
hp->h_name
);
} else if (type == 'd') {
if (p) puts(p + 1);
} else if (type == 'i') {