+2010-02-21 Charles Wilson <libtool@cwilson.fastmail.fm>
+
+ Guard against strerror()==NULL
+ * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src:main):
+ Check return value of strerror() using nonnull().
+ (func_emit_cwrapperexe_src:find_executable): Ditto.
+ (func_emit_cwrapperexe_src:chase_symlinks): Ditto.
+
2010-02-21 Charles Wilson <libtool@cwilson.fastmail.fm>
Document wrapper changes.
/* failed to start process */
lt_debugprintf (__FILE__, __LINE__,
"(main) failed to launch target \"%s\": %s\n",
- lt_argv_zero, strerror (errno));
+ lt_argv_zero, nonnull (strerror (errno)));
return 127;
}
return rval;
/* empty path: current directory */
if (getcwd (tmp, LT_PATHMAX) == NULL)
lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
- strerror (errno));
+ nonnull (strerror (errno)));
tmp_len = strlen (tmp);
concat_name =
XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
}
/* Relative path | not found in path: prepend cwd */
if (getcwd (tmp, LT_PATHMAX) == NULL)
- lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", strerror (errno));
+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
+ nonnull (strerror (errno)));
tmp_len = strlen (tmp);
concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
memcpy (concat_name, tmp, tmp_len);
{
lt_fatal (__FILE__, __LINE__,
"error accessing file \"%s\": %s",
- tmp_pathspec, strerror (errno));
+ tmp_pathspec, nonnull (strerror (errno)));
}
}
XFREE (tmp_pathspec);