- extern char curr_dir[];
- char *p1, *p2;
- if (*fnametmp == '.') {
- p1 = curr_dir;
- p2 = "/";
- } else
- p1 = p2 = "";
- rprintf(FERROR, "mkstemp %s%s%s failed: %s\n",
- p1, p2, fnametmp, strerror(errno));
- receive_data(f_in,buf,-1,NULL,file->length);
- if (buf) unmap_file(buf);
+ rprintf(FERROR, "mkstemp %s failed: %s\n",
+ full_fname(fnametmp), strerror(errno));
+ receive_data(f_in,mapbuf,-1,NULL,file->length);
+ if (mapbuf) unmap_file(mapbuf);