((fd = open4read(path)) < 0)) ||
!path_is_absolute(path))
{
- debugprint("sarahhhhh fd=%d path=<%s> dir=<%s> file=<%s> percent=%d\n",
+ debugprint("check file fd=%d path=<%s> dir=<%s> file=<%s> percent=%d\n",
fd, path, dir, file, percent);
bool found = false;
if (!dir && (!strchr(file, '/')))
}
if (!ret)
{
- debugprint("moshe\n");
perror(path);
}
}
else
{
- debugprint("abe\n");
perror(path);
}
}
fp->fd = -1;
if (!(dir = opendir(fp->path)))
{
- debugprint("yonah\n");
perror(fp->path);
return false;
}
names = malloc(sizeof(names[0]) * max_count_names);
if (!names)
{
- debugprint("zach\n");
perror("Out of RAM!");
exit(-1);
}
names = realloc(names, sizeof(names[0]) * max_count_names);
if (!names)
{
- debugprint("rebecca\n");
perror("Out of RAM!");
exit(-1);
}