[Bug 378889] New: yast2 hostnames doesn't handle tabs in /etc/ hosts correctly
https://bugzilla.novell.com/show_bug.cgi?id=378889 Summary: yast2 hostnames doesn't handle tabs in /etc/hosts correctly Product: openSUSE 10.3 Version: Final Platform: i686 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Andreas.Stieger@gmx.de QAContact: jsrain@novell.com Found By: Customer Created an attachment (id=207285) --> (https://bugzilla.novell.com/attachment.cgi?id=207285) screenshot of incorrectly handled tab charactes when loaded into hostnames modules of yast2 /etc/hosts allows blanks and/or tabs as field separators, according to it's manpage. The YaST2 module Network / Hostnames can correctly handle tab as seperator between field 1 and 2: sam:~ # tail -n 2 /etc/hosts 192.168.1.101 sam.local sam 192.168.1.105 murphy.local murphy sam:~ # tail -n 2 /etc/hosts | hexdump -C 00000000 31 39 32 2e 31 36 38 2e 31 2e 31 30 31 09 73 61 |192.168.1.101.sa| 00000010 6d 2e 6c 6f 63 61 6c_20_ 73 61 6d 0a 31 39 32 2e |m.local sam.192.| 00000020 31 36 38 2e 31 2e 31 30 35 09 6d 75 72 70 68 79 |168.1.105.murphy| 00000030 2e 6c 6f 63 61 6c_20_6d 75 72 70 68 79 0a |.local murphy.| 0000003e but not between hostname and alias, field 2 and 3: sam:~ # tail -n 2 /etc/hosts 192.168.1.101 sam.local sam 192.168.1.105 murphy.local murphy sam:~ # tail -n 2 /etc/hosts | hexdump -C 00000000 31 39 32 2e 31 36 38 2e 31 2e 31 30 31 09 73 61 |192.168.1.101.sa| 00000010 6d 2e 6c 6f 63 61 6c_09_ 73 61 6d 0a 31 39 32 2e |m.local.sam.192.| 00000020 31 36 38 2e 31 2e 31 30 35 09 6d 75 72 70 68 79 |168.1.105.murphy| 00000030 2e 6c 6f 63 61 6c_09_6d 75 72 70 68 79 0a |.local.murphy.| 0000003e The names are not displayed correctly, see screenshot. The corresponding edit dialog is empty. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=378889
User Andreas.Stieger@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=378889#c1
--- Comment #1 from Andreas Stieger
https://bugzilla.novell.com/show_bug.cgi?id=378889
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=378889
Andreas Stieger
https://bugzilla.novell.com/show_bug.cgi?id=378889
Michal Zugec
https://bugzilla.novell.com/show_bug.cgi?id=378889
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=378889#c2
Katarina Machalkova
participants (1)
-
bugzilla_noreply@novell.com