X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsystem.c;h=aa3ede42d429c5b0dfa526d7608cae7dd47ffb8b;hb=f218c29b13a1db019cca2e4016956e39ca87e051;hp=1e99aabe0056d6f890930cb7a0ef199cc4172bad;hpb=2bda83b48d8a6807632312403561b11b79048443;p=chaz%2Ftar diff --git a/src/system.c b/src/system.c index 1e99aab..aa3ede4 100644 --- a/src/system.c +++ b/src/system.c @@ -16,10 +16,10 @@ with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "system.h" +#include #include "common.h" -#include "rmt.h" +#include #include void @@ -118,11 +118,6 @@ sys_truncate (int fd) return write (fd, "", 0); } -void -sys_reset_uid_gid (void) -{ -} - size_t sys_write_archive_buffer (void) { @@ -281,13 +276,6 @@ sys_truncate (int fd) return pos < 0 ? -1 : ftruncate (fd, pos); } -void -sys_reset_uid_gid (void) -{ - setuid (getuid ()); - setgid (getgid ()); -} - /* Return nonzero if NAME is the name of a regular file, or if the file does not exist (so it would be created as a regular file). */ static int @@ -517,7 +505,6 @@ sys_child_open_for_uncompress (void) { /* The parent tar is still here! Just clean up. */ - read_full_records_option = true; archive = parent_pipe[PREAD]; xclose (parent_pipe[PWRITE]); return child_pid;