#include <sys/param.h>
#include <sys/stat.h>
#include <test_lstat.c>
void
test_lstat_file(char *url)
{
struct ftpstat fs;
char path[MAXPATHLEN];
test_login(url);
snprintf(path, sizeof(path), "%s/libfget_test/dir1/foo",
ftpurl.fu_path);
test_lstat_aux(path, &fs, 1);
if (!S_ISREG(fs.fs_mode))
{
fprintf(stderr, "S_ISREG() is false for \"%s\"\n", path);
exit(1);
}
}