Fix: multiuser screen fails with "attach attempt with bad pid"

PR:		55326
This commit is contained in:
Cy Schubert 2003-09-10 00:46:17 +00:00
parent 53ca9c765c
commit 8ab0ec1f9b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88880
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- os.h.orig Tue Jan 8 07:42:33 2002
+++ os.h Tue Sep 9 17:39:58 2003
@@ -161,7 +161,7 @@
# define setregid(rgid, egid) setresgid(rgid, egid, -1)
#endif
-#if defined(HAVE_SETEUID) || defined(HAVE_SETREUID)
+#if (defined(HAVE_SETEUID) || defined(HAVE_SETREUID)) && __FreeBSD_version < 500000
# define USE_SETEUID
#endif

View file

@ -0,0 +1,11 @@
--- os.h.orig Tue Jan 8 07:42:33 2002
+++ os.h Tue Sep 9 17:39:58 2003
@@ -161,7 +161,7 @@
# define setregid(rgid, egid) setresgid(rgid, egid, -1)
#endif
-#if defined(HAVE_SETEUID) || defined(HAVE_SETREUID)
+#if (defined(HAVE_SETEUID) || defined(HAVE_SETREUID)) && __FreeBSD_version < 500000
# define USE_SETEUID
#endif