Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37903955
en ru br
Репозитории ALT
S:2.1.5-alt4
5.1: 2.1.5-alt3
4.1: 2.1.5-alt3
4.0: 2.1.5-alt3
3.0: 2.1.0-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:2.1.5

Группа :: Система/Ядро и оборудование
Пакет: eject

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

Патч: eject-2.0.13-rh-autoclose.patch
Скачать


diff -Naur eject-2.0.13/eject.c eject-2.0.13.new/eject.c
--- eject-2.0.13/eject.c	2003-02-21 16:58:01 +0300
+++ eject-2.0.13.new/eject.c	2003-02-21 16:57:42 +0300
@@ -364,8 +364,11 @@
 {
 	int status;
 
-	status = ioctl(fd, CDROMEJECT_SW, onOff);
-	if (status != 0) {
+ 	if (onOff)
+ 		status = ioctl(fd, CDROM_SET_OPTIONS, CDO_AUTO_EJECT);
+ 	else
+ 		status = ioctl(fd, CDROM_CLEAR_OPTIONS, CDO_AUTO_EJECT);
+ 	if (status < 0) {
 		fprintf(stderr, _("%s: CD-ROM auto-eject command failed: %s\n"), __progname, strerror(errno));
 		exit(1);
 	}
diff -Naur eject-2.0.13/volname.c eject-2.0.13.new/volname.c
--- eject-2.0.13/volname.c	2001-07-03 00:17:41 +0400
+++ eject-2.0.13.new/volname.c	2003-02-21 16:56:47 +0300
@@ -35,6 +35,7 @@
 
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin