* lib/canonicalize.c (canonicalize_filename_mode):
Ensure references always resolve to a replacement
function if required (even via a macro).
The issue was spotted by Eric Blake and is
adequately documented in the docs for stat and lstat.
+2011-12-30 Pádraig Brady <P@draigBrady.com>
+
+ canonicalize: fix references to stat() and lstat()
+ * lib/canonicalize.c (canonicalize_filename_mode):
+ Ensure references always resolve to a replacement
+ function if required (even via a macro).
+
2011-12-30 Jim Meyering <meyering@redhat.com>
gitlog-to-changelog: remove a little duplication
dest += end - start;
*dest = '\0';
- if ((logical ? stat : lstat) (rname, &st) != 0)
+ if ((logical ? stat (rname, &st) : lstat (rname, &st)) != 0)
{
saved_errno = errno;
if (can_mode == CAN_EXISTING)