rem: char filename[MAXPATHLEN];  if (f_csums < 0) { strlcpy(filename, batch_prefix, sizeof(filename)); strlcat(filename, rsync_csums_file, sizeof(filename));  f_csums = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IREAD | S_IWRITE); if (f_csums < 0) { rprintf(FERROR, "Batch file %s open error: %s\n", filename, strerror(errno)); close(f_csums); exit_cleanup(1); } }
context: void write_batch_csums_file(void *buff, int bytes_to_write){	char filename[MAXPATHLEN];	if (f_csums < 0) {		strlcpy(filename, batch_prefix, sizeof(filename));		strlcat(filename, rsync_csums_file, sizeof(filename));		f_csums = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,				  S_IREAD | S_IWRITE);		if (f_csums < 0) {			rprintf(FERROR, "Batch file %s open error: %s\n",				filename, strerror(errno));			close(f_csums);			exit_cleanup(1);		}	}	if (write(f_csums, buff, bytes_to_write) < 0) {		rprintf(FERROR, "Batch file %s write error: %s\n",			filename, strerror(errno));		close(f_csums);		exit_cleanup(1);	}}