Lines Matching refs:outfile
94 register char *infile,*outfile;
140 if(!(outfile = outname(infile)))
152 else if(access(outfile,F_OK) ==0)
153 error(ERROR_system(0), "%s: already exists", outfile);
154 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
156 error(ERROR_system(0), "%s: cannot create", outfile);
157 else if((deleted++,chmod(outfile,statb.st_mode)) < 0)
158 error(ERROR_system(0), "%s: cannot change mode to %o",outfile,statb.st_mode);
161 chown(outfile,statb.st_uid,statb.st_gid);
193 remove(outfile);
194 if(outfile)
195 free(outfile);