Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/networking/hostname.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/networking/hostname.c
r3232 r3621 107 107 OPT_s = 0x8, 108 108 OPT_F = 0x10, 109 OPT_dfi s = 0xf,109 OPT_dfi = 0x7, 110 110 }; 111 111 … … 135 135 opts = OPT_d; 136 136 137 if (opts & OPT_dfi s) {137 if (opts & OPT_dfi) { 138 138 /* Cases when we need full hostname (or its part) */ 139 139 struct hostent *hp; … … 160 160 } 161 161 } 162 } else if (opts & OPT_s) { 163 strchrnul(buf, '.')[0] = '\0'; 164 puts(buf); 162 165 } else if (opts & OPT_F) { 163 166 /* Set the hostname */
Note:
See TracChangeset
for help on using the changeset viewer.