Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140121 | Differences between
and this patch

Collapse All | Expand All

(-)unix/cd_unix.c.old (-4 / +4 lines)
Lines 52-58 static byte maxTrack; Link Here
52
52
53
static int cdfile = -1;
53
static int cdfile = -1;
54
54
55
//static char cd_dev[64] = "/dev/cdrom";
55
//static char cd_dev[64] = "/dev/null";
56
56
57
cvar_t	*cd_volume;
57
cvar_t	*cd_volume;
58
cvar_t *cd_nocd;
58
cvar_t *cd_nocd;
Lines 505-521 int CDAudio_Init(void) Link Here
505
	cvar_t			*cv;
505
	cvar_t			*cv;
506
	extern uid_t saved_euid;
506
	extern uid_t saved_euid;
507
507
508
	cv = Cvar_Get ("nocdaudio", "0", CVAR_NOSET);
508
	cv = Cvar_Get ("nocdaudio", "1", CVAR_NOSET);
509
	if (cv->value)
509
	if (cv->value)
510
		return -1;
510
		return -1;
511
511
512
	cd_nocd = Cvar_Get ("cd_nocd", "0", CVAR_ARCHIVE );
512
	cd_nocd = Cvar_Get ("cd_nocd", "1", CVAR_ARCHIVE );
513
	if ( cd_nocd->value)
513
	if ( cd_nocd->value)
514
		return -1;
514
		return -1;
515
515
516
	cd_volume = Cvar_Get ("cd_volume", "1", CVAR_ARCHIVE);
516
	cd_volume = Cvar_Get ("cd_volume", "1", CVAR_ARCHIVE);
517
517
518
	cd_dev = Cvar_Get("cd_dev", "/dev/cdrom", CVAR_ARCHIVE);
518
	cd_dev = Cvar_Get("cd_dev", "/dev/null", CVAR_ARCHIVE);
519
519
520
	seteuid(saved_euid);
520
	seteuid(saved_euid);
521
521

Return to bug 140121