if (fstat(fd, &status) < 0) {
afs_com_err(whoami, errno, "Could not stat %s", localFile);
close(fd);
- printf("could not stast %s\n", localFile);
+ printf("could not stat %s\n", localFile);
return UPDATE_ERROR;
}
if (update_ReceiveFile(fd, call, &status))
if (errcode) {
printf("failed to fetch file %s \n", filename);
afs_com_err(whoami, errcode, "fetching file");
+ unlink(newfile);
return 1;
}
(unsigned int)mode);
afs_com_err(whoami, errno, "could not change protection on %s to %u",
newfile, mode);
+ unlink(newfile);
return 1;
}
#ifdef AFS_NT40_ENV
afs_com_err(whoami, errno,
"could not change access and modify times on %s to %u %u",
newfile, atime, mtime);
+ unlink(newfile);
return 1;
}