fix assertion failure in abort message (#141912)
This commit is contained in:
parent
8f13243823
commit
f3dcd364eb
@ -15,7 +15,7 @@
|
|||||||
+ else if ((path = realpath(nm.contents(), pbuf)) == NULL &&
|
+ else if ((path = realpath(nm.contents(), pbuf)) == NULL &&
|
||||||
+ (path = realpath(tmp, pbuf)) == NULL)
|
+ (path = realpath(tmp, pbuf)) == NULL)
|
||||||
+ {
|
+ {
|
||||||
+ error("realpath on `%1' failed: %3", nm.contents(), strerror(errno));
|
+ error("realpath on `%1' failed: %2", nm.contents(), strerror(errno));
|
||||||
+ } else if (safer_flag && strncmp(cwd, path, strlen(cwd)))
|
+ } else if (safer_flag && strncmp(cwd, path, strlen(cwd)))
|
||||||
error("won't source `%1' outside of `%2' without -U flag", path, cwd);
|
error("won't source `%1' outside of `%2' without -U flag", path, cwd);
|
||||||
else if (stat(path, &st) < 0)
|
else if (stat(path, &st) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user