Commit 9ad15e2d authored by Petr Machata's avatar Petr Machata Committed by Petr Machata

Also muffle warnings about weird file types referenced by environment

parent 94965f68
......@@ -505,8 +505,9 @@ opt_F_get_kind(struct opt_F_t *entry)
} else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
entry->kind = OPT_F_FILE;
} else {
fprintf(stderr, "%s is neither a regular file, "
"nor a directory.\n", entry->pathname);
if (entry->origin == OPT_F_CMDLINE)
fprintf(stderr, "%s is neither a regular file, "
"nor a directory.\n", entry->pathname);
entry->kind = OPT_F_BROKEN;
}
}
......
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