X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fetpan%2Fimap-thread.c;h=4521e00184fd1f47d5e3a198599e4da9608b372a;hp=4d33fae4940df944d15ccdf12fafb25bb58e824b;hb=180dd13e4f3c5997954c4a27eee2fea51f1842b3;hpb=c0bf5693a4ccb0f7d812bb8cf293ba278b581ba8 diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c index 4d33fae49..4521e0018 100644 --- a/src/etpan/imap-thread.c +++ b/src/etpan/imap-thread.c @@ -2459,7 +2459,7 @@ static void fetch_content_run(struct etpan_thread_op * op) result->error = r; if (r == MAILIMAP_NO_ERROR) { - fd = open(param->filename, O_RDWR | O_CREAT, 0600); + fd = g_open(param->filename, O_RDWR | O_CREAT, 0600); if (fd < 0) { result->error = MAILIMAP_ERROR_FETCH; goto free; @@ -2960,7 +2960,7 @@ static void append_run(struct etpan_thread_op * op) } size = stat_buf.st_size; - fd = open(param->filename, O_RDONLY); + fd = g_open(param->filename, O_RDONLY); if (fd < 0) { result->error = MAILIMAP_ERROR_APPEND; return; @@ -3246,7 +3246,7 @@ static void do_exec_command(int fd, const char * command, /* Detach from the controlling tty if we have one. Otherwise, SSH might do something stupid like trying to use it instead of running $SSH_ASKPASS. Doh. */ - fd = open("/dev/tty", O_RDONLY); + fd = g_open("/dev/tty", O_RDONLY); if (fd != -1) { ioctl(fd, TIOCNOTTY, NULL); close(fd);