Bug 1627

Summary: sessreg: uninitialized fields in the logged utmp structure
Product: xorg Reporter: Egmont Koblinger <egmont>
Component: App/xdmAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: 6.8.1   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
this fixes the problem none

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.