fix assertion failure in abort message (#141912)

This commit is contained in:
Miroslav Lichvar 2006-01-11 12:04:00 +00:00
parent 8f13243823
commit f3dcd364eb

View File

@ -15,7 +15,7 @@
+ else if ((path = realpath(nm.contents(), 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)))
error("won't source `%1' outside of `%2' without -U flag", path, cwd);
else if (stat(path, &st) < 0)