Date: Thu, 26 Jan 1995 20:58:13 -0800 From: Scott Mace <smace> To: dawes@physics.su.OZ.AU, cvs-ports Subject: patch for xconsole and freebsd Message-ID: <199501270458.UAA06335@freefall.cdrom.com>
next in thread | raw e-mail | index | archive | help
The following change needs to made to xconsole.c to prevent xconsole from failing to open the console under certain conditions. ex, going to single user mode and then back to mutli and trying to run xconsole... ** xconsole.c.orig Thu Jan 26 21:02:38 1995 --- xconsole.c Thu Jan 26 21:48:13 1995 *************** *** 167,176 **** --- 167,178 ---- struct stat sbuf; /* must be owner and have read/write permission */ #ifndef __NetBSD__ + #ifndef __FreeBSD__ if (!stat("/dev/console", &sbuf) && (sbuf.st_uid == getuid()) && !access("/dev/console", R_OK|W_OK)) #endif + #endif { #ifdef USE_FILE input = fopen (FILE_NAME, "r");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501270458.UAA06335>