1 Fixes directory creation race condition (#653434)
4 ===================================================================
5 --- screen.orig/screen.c 2012-06-21 01:43:09.000000000 +0200
6 +++ screen/screen.c 2012-06-21 01:44:31.000000000 +0200
8 sprintf(SockPath, "%s/S-%s", SockDir, LoginName);
9 if (access(SockPath, F_OK))
11 - if (mkdir(SockPath, 0700) == -1)
12 + if (mkdir(SockPath, 0700) == -1 && errno != EEXIST)
13 Panic(errno, "Cannot make directory '%s'", SockPath);
14 (void) chown(SockPath, real_uid, real_gid);