Browse Source

Fix test logic in is_usable_as_tmp_dir()

tags/fmail-0.1.1
Damien Goutte-Gattat 9 years ago
parent
commit
7b6b57e9f7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/fmail.c

+ 2
- 2
src/fmail.c View File

@@ -434,9 +434,9 @@ is_usable_as_tmp_dir(const char *dirname)
if ( stat(dirname, &st_buf) != -1 )
if ( S_ISDIR(st_buf.st_mode) )
if ( access(dirname, R_OK | W_OK) != -1 )
return 0;
return 1;

return -1;
return 0;
}

static const char *


Loading…
Cancel
Save