Bug 1627 - sessreg: uninitialized fields in the logged utmp structure
Summary: sessreg: uninitialized fields in the logged utmp structure
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xdm (show other bugs)
Version: 6.8.1
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 13:58 UTC by Egmont Koblinger
Modified: 2004-10-12 22:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
this fixes the problem (431 bytes, patch)
2004-10-13 13:59 UTC, Egmont Koblinger
no flags Details | Splinter Review

Description Egmont Koblinger 2004-10-13 13:58:16 UTC
root:~# utmpdump /var/run/utmp | grep :0
Utmp dump of /var/run/utmp
root:~# sessreg -w /var/log/wtmp -u /var/run/utmp -a -l :0 egmont
root:~# utmpdump /var/run/utmp | grep :0
Utmp dump of /var/run/utmp
[7] [03093] [:0  ] [egmont  ] [:0          ] [                    ] [48.251.252.
183 ] [Wed Oct 13 22:51:53 2004    ]

That 48.251.252.183 has nothing to do with my IP address. It's just some random 
garbage logged since sessreg only initializes fields in the utmp structure it 
knows about, and leaves random noise in other fields.

Patch follows.
Comment 1 Egmont Koblinger 2004-10-13 13:59:18 UTC
Created attachment 1103 [details] [review]
this fixes the problem
Comment 2 Adam Jackson 2004-10-13 15:14:34 UTC
applied, thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.