diff options
Diffstat (limited to 'dpi/datauri.c')
-rw-r--r-- | dpi/datauri.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dpi/datauri.c b/dpi/datauri.c index 9d8fbcb7..dd0dbf7f 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -275,12 +275,17 @@ int main(void) { char *dpip_tag = NULL, *cmd = NULL, *url = NULL, *mime_type; unsigned char *data; + int rc; size_t data_size = 0; /* Initialize the SockHandler */ sh = sock_handler_new(STDIN_FILENO, STDOUT_FILENO, 8*1024); - chdir("/tmp"); + rc = chdir("/tmp"); + if (rc == -1) { + MSG("paths: error changing directory to /tmp: %s\n", + dStrerror(errno)); + } /* Read the dpi command from STDIN */ dpip_tag = sock_handler_read(sh); |