openbsd-ports/comms/minicom/patches/patch-ag
form bb05206d57 Do not use setreuid()/setregid() under OpenBSD,
use seteuid()/setegid() to set eff uid/gid,
use setuid()/setgid() to drop privs instead.
1998-12-20 12:09:47 +00:00

32 lines
915 B
Plaintext

--- config.h.orig Sat Nov 1 01:48:00 1997
+++ config.h Mon Dec 21 00:04:30 1998
@@ -20,7 +20,7 @@
/* Operating system INdependant parameters. (Usually the same everywhere) */
#define KERMIT "/usr/local/bin/kermit -l %l -b %b" /* How to call kermit */
-#define UUCPLOCK "/var/spool/uucp" /* Lock file directory */
+#define UUCPLOCK "/var/spool/lock" /* Lock file directory */
#define LOGFILE "minicom.log" /* Not defined = not used */
/* Operating system dependant parameters, per OS. A few samples are given. */
@@ -58,7 +58,18 @@
#ifdef __FreeBSD__
# define DFL_PORT "/dev/modem"
-# define DEF_BAUD "19200"
+# define DEF_BAUD "38400"
+# define CALLOUT ""
+# define CALLIN ""
+#endif
+
+#ifdef __OpenBSD__
+# ifdef sparc
+# define DFL_PORT "/dev/ttya"
+# else
+# define DFL_PORT "/dev/tty00"
+# endif
+# define DEF_BAUD "38400"
# define CALLOUT ""
# define CALLIN ""
#endif