screen/screen-4.0.3-ptygroup.patch
Miroslav Lichvar 6f40f59395 - don't set xterm function keys in default config (#151556)
- always return 0 in scriptlet (#433882)
- fix pty permissions
- enable utempter support
- link with libtinfo, don't link with libutil
- spec cleanup
2008-02-26 17:11:59 +00:00

20 lines
528 B
Diff

diff -up screen-4.0.3/window.c.ptygroup screen-4.0.3/window.c
--- screen-4.0.3/window.c.ptygroup 2008-02-26 10:38:35.000000000 +0100
+++ screen-4.0.3/window.c 2008-02-26 10:39:53.000000000 +0100
@@ -1083,6 +1083,7 @@ char **namep;
return f;
#ifndef PTYROFS
+#if 0
#ifdef PTYGROUP
if (chown(*namep, real_uid, PTYGROUP) && !eff_uid)
#else
@@ -1093,6 +1094,7 @@ char **namep;
close(f);
return -1;
}
+#endif
#ifdef UTMPOK
if (chmod(*namep, lflag ? TtyMode : (TtyMode & ~022)) && !eff_uid)
#else