Skip to content

Instantly share code, notes, and snippets.

ruv

Block or report user

Report or block ruv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pasela
pasela / screen-4.1.0-cygwin-sock-permission.patch
Created Aug 20, 2012
GNU screen: A patch to avoid /tmp/uscreens permission check on Cygwin
View screen-4.1.0-cygwin-sock-permission.patch
diff --git a/src/screen.c b/src/screen.c
index 6e19732..3a8ca3e 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1102,8 +1102,10 @@ char **av;
n = (eff_uid == 0 && (real_uid || (st.st_mode & 0775) != 0775)) ? 0755 :
(eff_gid == (int)st.st_gid && eff_gid != real_gid) ? 0775 :
0777;
+#if !defined(__CYGWIN__)
if (((int)st.st_mode & 0777) != n)
You can’t perform that action at this time.