version 1.50, 2017/04/22 06:13:30 |
version 1.51, 2018/01/15 15:27:03 |
|
|
struct client *c = item->client; |
struct client *c = item->client; |
FILE *f; |
FILE *f; |
const char *path, *bufname; |
const char *path, *bufname; |
char *pdata, *new_pdata, *cause, *file; |
char *pdata = NULL, *new_pdata, *cause; |
|
char *file; |
size_t psize; |
size_t psize; |
int ch, error; |
int ch, error; |
|
|
|
|
f = fopen(file, "rb"); |
f = fopen(file, "rb"); |
if (f == NULL) { |
if (f == NULL) { |
cmdq_error(item, "%s: %s", file, strerror(errno)); |
cmdq_error(item, "%s: %s", file, strerror(errno)); |
free(file); |
goto error; |
return (CMD_RETURN_ERROR); |
|
} |
} |
|
|
pdata = NULL; |
pdata = NULL; |