diff options
author | Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de> | 2009-12-18 16:33:02 -0500 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2009-12-18 16:33:02 -0500 |
commit | 1e450254e75877b6bb5cacedd5466245dbb54576 (patch) | |
tree | 2d9aa9027026555ecf23a02086b686b413ef12d5 | |
parent | 3b19a1d343e72e4fa786e9ab514d80303902a2c1 (diff) | |
download | screen-1e450254e75877b6bb5cacedd5466245dbb54576.tar.gz |
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.)
-rw-r--r-- | src/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 : |