From: François Pinard Date: Wed, 16 Nov 1994 02:46:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=3da5aa697398db08cc73ea2ffcc71373f9f2fff2;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/buffer.c b/src/buffer.c index 72071df..4f19bb7 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -304,7 +304,7 @@ child_open() #ifdef NO_REMOTE if(!(ar_files[0][0]=='-' && ar_files[0][1]=='\0') && isfile(ar_files[0])) #else - if(!(ar_files[0][0]=='-' && ar_file[0][1]=='\0') && !_remdev(ar_files[0]) && isfile(ar_files[0])) + if(!(ar_files[0][0]=='-' && ar_files[0][1]=='\0') && !_remdev(ar_files[0]) && isfile(ar_files[0])) #endif { /* We don't need a child tar. Open the archive */ @@ -362,7 +362,7 @@ child_open() ck_close(kidpipe[WRITE]); } - if (ar_file[0] == '-' && ar_file[1] == '\0') { + if (ar_files[0][0] == '-' && ar_files[0][1] == '\0') { if (ar_reading) archive = STDIN; else @@ -1367,7 +1367,7 @@ int type; else if(type==1) archive=rmtopen(ar_files[cur_ar_file],O_RDONLY,0666); else if(type==0) - archive=rmtcreat(ar_file[cur_ar_file],0666); + archive=rmtcreat(ar_files[cur_ar_file],0666); else archive= -1;