ALT Linux Bugzilla
– Attachment 2517 Details for
Bug 15073
Unable to set an alias to '127.0.0.1' in VE /etc/hosts file
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Replace only first line for '127.0.0.1' in /etc/hosts
local.patch (text/plain), 604 bytes, created by
Nikolay A. Fetisov
on 2008-03-25 13:24:42 MSK
(
hide
)
Description:
Replace only first line for '127.0.0.1' in /etc/hosts
Filename:
MIME Type:
Creator:
Nikolay A. Fetisov
Created:
2008-03-25 13:24:42 MSK
Size:
604 bytes
patch
obsolete
>--- a/vz/dists/scripts/functions >+++ b/vz/dists/scripts/functions >@@ -272,15 +272,16 @@ change_hostname() > ${CP} "$cfg" "$cfg.$$" || > error "Can't copy file ${cfg}" $VZ_FS_NO_DISK_SPACE > awk -v ip="$ip" -v host="$host" -v comm="$comm" ' >- BEGIN {found = 0; skip = 0} >+ BEGIN {found = 0; skip = 0; lcl=0} > $0 == comm {found = 1; next} > found { > if (ip == "") {ip = $1} > next; > } >- !found && $2 == host {skip = 1} >- $1 == "127.0.0.1" { >+ $2 == host {skip = 1} >+ !lcl && $1 == "127.0.0.1" { > print "127.0.0.1 localhost.localdomain localhost"; >+ lcl = 1; > next; > } > {print}
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 15073
: 2517