Commit 6ce9432d authored by Wayne Davison's avatar Wayne Davison

A bug-fix for die_on_unsafe_path() when the path doesn't exist.

parent 6c850772
......@@ -922,7 +922,8 @@ void die_on_unsafe_path(char *path, int strip_filename)
if ((p = strchr(p, '/')) != NULL)
*p = '\0';
if (safe_stat(path, &st) < 0) {
*p++ = '/';
if (p)
*p = '/';
goto done;
}
if (S_ISLNK(st.st_mode)) {
......
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