ALT Linux Bugzilla
– Attachment 2516 Details for
Bug 15072
FR: unclear text in delimeter line in VE's /etc/hosts file
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Adding additional comments in autogenerated /etc/hosts
comment.patch (text/plain), 653 bytes, created by
Nikolay A. Fetisov
on 2008-03-25 13:20:30 MSK
(
hide
)
Description:
Adding additional comments in autogenerated /etc/hosts
Filename:
MIME Type:
Creator:
Nikolay A. Fetisov
Created:
2008-03-25 13:20:30 MSK
Size:
653 bytes
patch
obsolete
>diff --git a/vz/dists/scripts/functions b/vz/dists/scripts/functions >index b067ec2..459fc30 100755 >--- a/vz/dists/scripts/functions >+++ b/vz/dists/scripts/functions >@@ -275,7 +275,7 @@ change_hostname() > BEGIN {found = 0; skip = 0} > $0 == comm {found = 1; next} > found { >- if (ip == "") {ip = $1} >+ if (ip == "" && ! $1 ~ "^#") {ip = $1} > next; > } > !found && $2 == host {skip = 1} >@@ -288,6 +288,7 @@ change_hostname() > if (skip) exit 0; > if (ip == "") { ip = "127.0.0.1" } > print comm; >+ print "# ALL CHANGES BELOW THIS LINE WILL BE LOST"; > alias="" > if ((i=index(host, ".")) > 1) { > alias=substr(host, 1, i - 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 15072
: 2516