From 1e450254e75877b6bb5cacedd5466245dbb54576 Mon Sep 17 00:00:00 2001 From: Jan Christoph Nordholz Date: Fri, 18 Dec 2009 16:33:02 -0500 Subject: [PATCH] Allow symlinked SockDir. I don't know why screen should not allow a symlinked SockDir; so now it does. (Note: this is one of TWO calls to lstat() the whole program has - and this one isn't even wrapped in #ifdef HAVE_LSTAT as it should.) --- src/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index edec34a..212bee2 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1078,7 +1078,7 @@ char **av; else { SockDir = SOCKDIR; - if (lstat(SockDir, &st)) + if (stat(SockDir, &st)) { n = (eff_uid == 0 && (real_uid || eff_gid == real_gid)) ? 0755 : (eff_gid != real_gid) ? 0775 : -- 2.11.4.GIT