From: Thomas Roessler Date: Wed, 2 Feb 2000 07:56:18 +0000 (+0000) Subject: Use O_NOFOLLOW when it's there, and needed. X-Git-Tag: mutt-1-1-3-rel~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f656cb2946083319f62b3e01e21fed59c0d19e5;p=mutt Use O_NOFOLLOW when it's there, and needed. --- diff --git a/lib.c b/lib.c index fb80d5f3..1d56365e 100644 --- a/lib.c +++ b/lib.c @@ -354,6 +354,10 @@ FILE *safe_fopen (const char *path, const char *mode) int fd; int flags = O_CREAT | O_EXCL; +#ifdef O_NOFOLLOW + flags |= O_NOFOLLOW; +#endif + if (mode[1] == '+') flags |= O_RDWR; else