From: David Levine Date: Mon, 17 Apr 2017 22:06:05 +0000 (-0400) Subject: Use stat(3) instead of lstat(3), to dereference symbolic links. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1277dcbaa186e0c8940f9efe36109b5a0f5142b3?ds=inline Use stat(3) instead of lstat(3), to dereference symbolic links. Fix to commit 4318012376e06229307c0ed4f62a00faae9edc63. --- diff --git a/uip/mhparse.c b/uip/mhparse.c index 03d7ae35..c17bd785 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -245,8 +245,8 @@ parse_mime (char *file) return NULL; } fseek (fp, 0L, SEEK_SET); - } else if (lstat (file, &statbuf) == NOTOK) { - advise (file, "unable to lstat"); + } else if (stat (file, &statbuf) == NOTOK) { + advise (file, "unable to stat"); return NULL; } else if (S_ISDIR(statbuf.st_mode)) { /* Don't try to parse a directory. */