mirror of
https://github.com/UberGames/ioef.git
synced 2025-06-02 18:21:27 +00:00
remove useless setuid code
This commit is contained in:
parent
4a5f66fbe3
commit
2e6d24d973
3 changed files with 1 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue