Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37853720
en ru br
Репозитории ALT
4.0: 7.3.0-alt1
3.0: 6.8.2-alt18
+updates:6.8.2-alt24
www.altlinux.org/Changes

Группа :: Система/X11
Пакет: xorg-x11

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: XFree86-4.2.0-sessreg-highuid.patch
Скачать


This patch which uses lseek64() and open64() is unacceptable since
it breaks X on other platforms.  Perhaps we should #ifdef __linux__ it,
or perhaps we should have Linux built apps built with the flags
-D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE
This is something that will need to be fixed before it is accepted into
upstream XFree86 sources.
--- xc/programs/xdm/sessreg.c.orig	Tue Mar 26 17:13:53 2002
+++ xc/programs/xdm/sessreg.c	Tue Mar 26 17:13:59 2002
@@ -329,12 +329,12 @@
 	        struct passwd *pwd = getpwnam(user_name);
 
 	        sysnerr( pwd != NULL, "get user id");
-	        llog = open (llog_file, O_RDWR);
+	        llog = open64 (llog_file, O_RDWR);
 
 		if (llog != -1) {
 			struct lastlog ll;
 
-			sysnerr (lseek(llog, (long) pwd->pw_uid*sizeof(ll), 0)
+			sysnerr (lseek64(llog, (loff_t) pwd->pw_uid*sizeof(ll), 0)
 				        != -1, "seeking lastlog entry");
 			bzero((char *)&ll, sizeof(ll));
 			ll.ll_time = current_time;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin