#include <string.h>
#include <sys/param.h>

#include <test_opendir.c>

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);
	}
}




syntax highlighted by Code2HTML, v. 0.9.1