]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/adouble/ad_open.c
Fix for incomplete AFP 3.4 commit 70e3fcd8744752d6de0b93d089f41c28dca30bde
[netatalk.git] / libatalk / adouble / ad_open.c
index 06c3c71e49a7cfaca6ada37276237d0a4ae66f4f..1708d08b18e8200f35d85bb86698d4424b4e15ae 100644 (file)
@@ -1897,7 +1897,7 @@ int ad_openat(struct adouble  *ad,
     mode_t mode = 0;
 
     if (dirfd != -1) {
-        if ((cwdfd = open(".", O_RDONLY) == -1) || (fchdir(dirfd) != 0))
+        if (((cwdfd = open(".", O_RDONLY)) == -1) || (fchdir(dirfd) != 0))
             EC_FAIL;
     }