Sfoglia il codice sorgente

Moved system dependencies to system.c

Sergey Poznyakoff 21 anni fa
parent
commit
a0d91086c4
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. 1 4
      src/rtapelib.c

+ 1 - 4
src/rtapelib.c

@@ -482,10 +482,7 @@ rmt_open__ (const char *path, int open_mode, int bias, const char *remote_shell)
 	close (from_remote[remote_pipe_number][PREAD]);
 	close (from_remote[remote_pipe_number][PWRITE]);
 
-#if !MSDOS
-	setuid (getuid ());
-	setgid (getgid ());
-#endif
+	sys_reset_uid_gid ();
 
 	if (remote_user)
 	  execl (remote_shell, remote_shell_basename, remote_host,