X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsystem.c;h=aa3ede42d429c5b0dfa526d7608cae7dd47ffb8b;hb=7347b4f5d51c15bb19637ea52e9bf7dff832cc52;hp=cd8f77c2eadf3a75845708b162b5f6d6248c3f3f;hpb=e3bd2a63a62aede213fe3b451952c254b095090d;p=chaz%2Ftar diff --git a/src/system.c b/src/system.c index cd8f77c..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