Commit b774345c authored by brabox's avatar brabox

Bigtool: fixed malbehavior caused by creating a .big from non-existing files

parent 09ca5d70
......@@ -329,9 +329,9 @@ void Create(const char *archive, int argc, char **argv)
vec_foreach(&files, file, iter)
{
// Remove the directory.
if (is_directory(file))
if (is_directory(file) || fsize(file) == -1)
{
printf("\"%s\" is a directory, skipping...\n", file);
printf("\"%s\" is a directory or does not exist, skipping...\n", file);
vec_remove(&files, file);
free(file);
iter--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment