Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21999 - [gdm] Release string not displayed correctly on GDM login screen

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Monday, 06 December 2010, 21:01 GMT
Last edited by Ionut Biru (wonder) - Tuesday, 07 December 2010, 01:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
On GDM login screen you can see the computer's hostname below the computer icon. When you click on it, it replaced by the first line from /etc/issue file, which contains special characters only.

When I add the following line to /etc/arch-release file, then GDM reads from it instead of /etc/issue file and displays correctly:
"Arch Linux 2.6.36-ARCH"

So I suggest to add some release information to arch-release file.

Additional info:
* package version(s)
filesystem 2010.10-1
gdm 2.32.0-3
(also happens with earlier versions)

Steps to reproduce:
Run GDM login screen and click on the hostname below computer icon.
This task depends upon

Closed by  Ionut Biru (wonder)
Tuesday, 07 December 2010, 01:59 GMT
Reason for closing:  Fixed
Comment by Ionut Biru (wonder) - Monday, 06 December 2010, 21:14 GMT
@Thomas is it worth implementing something in /etc/arch-release or should i fix gdm?
Comment by Allan McRae (Allan) - Monday, 06 December 2010, 22:46 GMT
/etc/archrelease being empty is covered by  FS#19637 ,  FS#21568 ,  FS#13739 ,  FS#7493 ,  FS#7163 ,  FS#7156 ,  FS#8618 ,  FS#3380 ... well, I think you get the point :P
Comment by Ionut Biru (wonder) - Tuesday, 07 December 2010, 01:30 GMT
this is an upstream bug in their file_read_one_line function

http://git.gnome.org/browse/gdm/tree/gui/simple-greeter/gdm-greeter-login-window.c?id=c04ba8e09110c72aeb9b3b1574bfd733cc661437#n1082

char buf[4096];

bug is initialized with a random value and is NOT NULL.

fgets return NULL because there is nothing to read but they are still duplicating buf into line.

please report it and paste the link here so i can follow it
Comment by Ionut Biru (wonder) - Tuesday, 07 December 2010, 01:59 GMT
nvm about opening a bug.

patch here: http://pkgbuild.com/~ioni/0001-Fix-version-in-login-window-when-file-is-empty.patch

soon would hit repos

Loading...