remove useless setuid code

This commit is contained in:
Ludwig Nussel 2005-09-03 12:02:28 +00:00
parent 4a5f66fbe3
commit 2e6d24d973
3 changed files with 1 additions and 12 deletions

View file

@ -82,7 +82,6 @@ qboolean SNDDMA_Init(void)
// char *s; // bk001204 - unused
struct audio_buf_info info;
int caps;
extern uid_t saved_euid;
if (snd_inited)
return 1;
@ -96,12 +95,8 @@ qboolean SNDDMA_Init(void)
// open /dev/dsp, confirm capability to mmap, and get size of dma buffer
if (!audio_fd) {
seteuid(saved_euid);
audio_fd = open(snddevice->string, O_RDWR);
seteuid(getuid());
if (audio_fd < 0) {
perror(snddevice->string);
Com_Printf("Could not open %s\n", snddevice->string);