]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Correct invalid function call in la_opendirat()
authorMartin Matuska <martin@matuska.org>
Sun, 1 Sep 2019 08:48:33 +0000 (10:48 +0200)
committerMartin Matuska <martin@matuska.org>
Sun, 1 Sep 2019 08:52:01 +0000 (10:52 +0200)
Fixes #1239

libarchive/archive_write_disk_posix.c

index 283f3e787678abb7ca9dc7fb773913955fd33dff..6ae8a6a89bbf446b5da5a16b45fa451900552836 100644 (file)
@@ -431,7 +431,7 @@ la_opendirat(int fd, const char *path) {
                errno = ENOTSUP;
                return (-1);
        } else
-               return (open(fd, path, flags));
+               return (open(path, flags));
 #else
        return (openat(fd, path, flags));
 #endif