Skip to content

Instantly share code, notes, and snippets.

@yujinakayama
Created January 23, 2013 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yujinakayama/4608863 to your computer and use it in GitHub Desktop.
Save yujinakayama/4608863 to your computer and use it in GitHub Desktop.
Patch for GNU Screen HEAD on OS X, which disables the error message "/var/run/utmp: No such file or directory" on launch. This is based on http://www.opensource.apple.com/source/screen/screen-16/patches/config.h.in.diff
diff --git a/src/acconfig.h b/src/acconfig.h
index 2e46985..c797e5c 100644
--- a/src/acconfig.h
+++ b/src/acconfig.h
@@ -191,14 +191,14 @@
* If screen is installed with permissions to update /etc/utmp (such
* as if it is installed set-uid root), define UTMPOK.
*/
-#define UTMPOK
+#undef UTMPOK
/* Set LOGINDEFAULT to one (1)
* if you want entries added to /etc/utmp by default, else set it to
* zero (0).
* LOGINDEFAULT will be one (1) whenever LOGOUTOK is undefined!
*/
-#define LOGINDEFAULT 1
+#undef LOGINDEFAULT
/* Set LOGOUTOK to one (1)
* if you want the user to be able to log her/his windows out.
@@ -214,7 +214,7 @@
* Set CAREFULUTMP to one (1) if you want that users have at least one
* window per screen session logged in.
*/
-#define LOGOUTOK 1
+#undef LOGOUTOK
#undef CAREFULUTMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment