X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Frtapelib.c;h=dcf2477c70e521ceafb27ccd2e11185af1ce240a;hb=143e677b5e8f5167ab8b7d711192f7558a4129b6;hp=2347266d8b196b70d7ff68222f87d6dbcbe8f9a8;hpb=56147d0b4339ad8d9e18d94f143124f63743dd51;p=chaz%2Ftar diff --git a/src/rtapelib.c b/src/rtapelib.c index 2347266..dcf2477 100644 --- a/src/rtapelib.c +++ b/src/rtapelib.c @@ -1,5 +1,7 @@ /* Functions for communicating with a remote tape drive. - Copyright 1988,92,94,96,97,99,2000, 2001 Free Software Foundation, Inc. + + Copyright 1988, 1992, 1994, 1996, 1997, 1999, 2000, 2001 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -58,8 +60,6 @@ #include "rmt.h" -char *base_name PARAMS ((char const *)); - /* Exit status if exec errors. */ #define EXIT_ON_EXEC_ERROR 128 @@ -251,8 +251,6 @@ get_status_off (int handle) #if WITH_REXEC -int rexec (); - /* Execute /etc/rmt as user USER on remote system HOST using rexec. Return a file descriptor of a bidirectional socket for stdin and stdout. If USER is zero, use the current username. @@ -484,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,