#include #include #include void test_opendir_file(char *url) { test_login(url); if (test_opendir_aux("long.txt", 0) != -1) { fprintf(stderr, "ftp_opendir() succeeded for non-dir path \"%s\"\n", "long.txt"); exit(1); } if (errno != ENOTDIR) { fprintf(stderr, "errno=%d, should be ENOTDIR\n", errno); exit(1); } }