Contents of /trunk/xorg-old/patches-6.8.2-r10/0700_all_4.2.0-sessreg-highuid.patch
Parent Directory | Revision Log
Revision 167 -
(show annotations)
(download)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 960 byte(s)
Tue May 8 20:58:51 2007 UTC (17 years, 4 months ago) by niro
File size: 960 byte(s)
-import
1 | This patch which uses lseek64() and open64() is unacceptable since |
2 | it breaks X on other platforms. Perhaps we should #ifdef __linux__ it, |
3 | or perhaps we should have Linux built apps built with the flags |
4 | -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE |
5 | |
6 | This is something that will need to be fixed before it is accepted into |
7 | upstream XFree86 sources. |
8 | |
9 | --- xc/programs/xdm/sessreg.c.orig Tue Mar 26 17:13:53 2002 |
10 | +++ xc/programs/xdm/sessreg.c Tue Mar 26 17:13:59 2002 |
11 | @@ -329,12 +329,12 @@ |
12 | struct passwd *pwd = getpwnam(user_name); |
13 | |
14 | sysnerr( pwd != NULL, "get user id"); |
15 | - llog = open (llog_file, O_RDWR); |
16 | + llog = open64 (llog_file, O_RDWR); |
17 | |
18 | if (llog != -1) { |
19 | struct lastlog ll; |
20 | |
21 | - sysnerr (lseek(llog, (long) pwd->pw_uid*sizeof(ll), 0) |
22 | + sysnerr (lseek64(llog, (loff_t) pwd->pw_uid*sizeof(ll), 0) |
23 | != -1, "seeking lastlog entry"); |
24 | bzero((char *)&ll, sizeof(ll)); |
25 | ll.ll_time = current_time; |