update to conserver 8.1.20, add more notes for upgrading users on how to

unbreak things following the uid change
This commit is contained in:
sthen 2014-09-08 16:12:11 +00:00
parent 5769fddbc5
commit 5398791b6e
9 changed files with 55 additions and 64 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.45 2014/08/21 19:58:07 sthen Exp $ # $OpenBSD: Makefile,v 1.46 2014/09/08 16:12:11 sthen Exp $
COMMENT= manage remote serial consoles via TCP/IP COMMENT= manage remote serial consoles via TCP/IP
DISTNAME= conserver-8.1.16 DISTNAME= conserver-8.1.20
REVISION= 9
CATEGORIES= comms CATEGORIES= comms
MAINTAINER= Stuart Henderson <sthen@openbsd.org> MAINTAINER= Stuart Henderson <sthen@openbsd.org>

View File

@ -1,2 +1,2 @@
SHA256 (conserver-8.1.16.tar.gz) = Q9ydgbwj12oOwBrNH1T1wna3Ff7rj1K7M7XIHzJaRtg= SHA256 (conserver-8.1.20.tar.gz) = YaEHJ0hGmwWktmqilxn4GsHLgdtqj6llIWAolWjeisw=
SIZE (conserver-8.1.16.tar.gz) = 311373 SIZE (conserver-8.1.20.tar.gz) = 334147

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-conserver_Makefile_in,v 1.3 2008/06/21 11:29:25 sthen Exp $ $OpenBSD: patch-conserver_Makefile_in,v 1.4 2014/09/08 16:12:11 sthen Exp $
--- conserver/Makefile.in.orig Mon Jun 6 16:03:06 2005 --- conserver/Makefile.in.orig Fri Sep 13 23:46:53 2013
+++ conserver/Makefile.in Fri Oct 12 12:11:24 2007 +++ conserver/Makefile.in Tue Sep 2 20:29:22 2014
@@ -36,7 +36,7 @@ CONSERVER_HDRS = ../config.h $(top_srcdir)/compat.h $( @@ -37,7 +37,7 @@ CONSERVER_HDRS = ../config.h $(top_srcdir)/compat.h $(
$(srcdir)/group.h $(srcdir)/main.h $(srcdir)/master.h \ $(srcdir)/group.h $(srcdir)/main.h $(srcdir)/master.h \
$(srcdir)/readcfg.h $(srcdir)/version.h $(srcdir)/readcfg.h $(srcdir)/version.h
@ -10,7 +10,7 @@ $OpenBSD: patch-conserver_Makefile_in,v 1.3 2008/06/21 11:29:25 sthen Exp $
all: $(ALL) all: $(ALL)
@@ -46,8 +46,8 @@ $(CONSERVER_OBJS): $(CONSERVER_HDRS) @@ -47,8 +47,8 @@ $(CONSERVER_OBJS): $(CONSERVER_HDRS)
conserver: $(CONSERVER_OBJS) conserver: $(CONSERVER_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o conserver $(CONSERVER_OBJS) $(LIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o conserver $(CONSERVER_OBJS) $(LIBS)
@ -21,14 +21,14 @@ $OpenBSD: patch-conserver_Makefile_in,v 1.3 2008/06/21 11:29:25 sthen Exp $
.c.o: .c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
@@ -59,13 +59,9 @@ distclean: clean @@ -60,13 +60,9 @@ distclean: clean
rm -f Makefile conserver.rc rm -f Makefile conserver.rc
install: conserver install: conserver
- $(MKDIR) $(DESTDIR)$(sbindir) - $(MKDIR) $(DESTDIR)$(sbindir)
- $(INSTALL_PROGRAM) conserver $(DESTDIR)$(sbindir) - $(INSTALL_PROGRAM) conserver $(DESTDIR)$(sbindir)
- $(MKDIR) $(DESTDIR)$(mandir)/man8 - $(MKDIR) $(DESTDIR)$(mandir)/man8
- $(INSTALL) conserver.man $(DESTDIR)$(mandir)/man8/conserver.8 - $(INSTALL) -m 0644 conserver.man $(DESTDIR)$(mandir)/man8/conserver.8
- $(MKDIR) $(DESTDIR)$(exampledir) - $(MKDIR) $(DESTDIR)$(exampledir)
- $(INSTALL) conserver.rc $(DESTDIR)$(exampledir) - $(INSTALL) conserver.rc $(DESTDIR)$(exampledir)
- $(MKDIR) $(DESTDIR)$(pkglibdir) - $(MKDIR) $(DESTDIR)$(pkglibdir)

View File

@ -1,20 +1,20 @@
$OpenBSD: patch-conserver_cf_Makefile_in,v 1.2 2005/08/02 07:25:47 pvalchev Exp $ $OpenBSD: patch-conserver_cf_Makefile_in,v 1.3 2014/09/08 16:12:11 sthen Exp $
--- conserver.cf/Makefile.in.orig Tue Feb 10 01:32:28 2004 --- conserver.cf/Makefile.in.orig Fri Sep 13 23:46:51 2013
+++ conserver.cf/Makefile.in Sat Jul 30 09:42:34 2005 +++ conserver.cf/Makefile.in Tue Sep 2 20:25:45 2014
@@ -23,11 +23,10 @@ distclean: clean @@ -24,11 +24,10 @@ distclean: clean
rm -f Makefile rm -f Makefile
install: install:
- $(MKDIR) $(DESTDIR)$(mandir)/man5 - $(MKDIR) $(DESTDIR)$(mandir)/man5
- $(INSTALL) conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5 - $(INSTALL) -m 0644 conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5
- $(INSTALL) conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5 - $(INSTALL) -m 0644 conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5
- $(MKDIR) $(DESTDIR)$(exampledir) - $(MKDIR) $(DESTDIR)$(exampledir)
- $(INSTALL) -m 0644 conserver.cf $(DESTDIR)$(exampledir) - $(INSTALL) -m 0644 conserver.cf $(DESTDIR)$(exampledir)
- $(INSTALL) -m 0644 conserver.passwd $(DESTDIR)$(exampledir) - $(INSTALL) -m 0644 conserver.passwd $(DESTDIR)$(exampledir)
+ $(BSD_INSTALL_MAN) conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5 + $(BSD_INSTALL_MAN) -m 0644 conserver.cf.man $(DESTDIR)$(mandir)/man5/conserver.cf.5
+ $(BSD_INSTALL_MAN) conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5 + $(BSD_INSTALL_MAN) -m 0644 conserver.passwd.man $(DESTDIR)$(mandir)/man5/conserver.passwd.5
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(exampledir) + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(exampledir)
+ $(BSD_INSTALL_DATA) conserver.cf $(DESTDIR)$(exampledir) + $(BSD_INSTALL_DATA) -m 0644 conserver.cf $(DESTDIR)$(exampledir)
+ $(BSD_INSTALL_DATA) conserver.passwd $(DESTDIR)$(exampledir) + $(BSD_INSTALL_DATA) -m 0644 conserver.passwd $(DESTDIR)$(exampledir)
.PHONY: clean distclean install .PHONY: clean distclean install

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-conserver_consent_c,v 1.3 2008/06/21 11:29:25 sthen Exp $ $OpenBSD: patch-conserver_consent_c,v 1.4 2014/09/08 16:12:11 sthen Exp $
--- conserver/consent.c.orig Mon Apr 9 16:52:28 2007 --- conserver/consent.c.orig Fri Apr 4 06:34:13 2014
+++ conserver/consent.c Fri Oct 12 11:29:17 2007 +++ conserver/consent.c Tue Sep 2 20:24:00 2014
@@ -587,7 +587,8 @@ VirtDev(pCE) @@ -557,7 +557,8 @@ SetupTty(pCE, fd)
Error("[%s] tcgetattr(0): %s", pCE->server, strerror(errno)); if (0 != tcgetattr(1, &n_tio)) {
Bye(EX_OSERR); exit(EX_OSERR);
} }
- n_tio.c_iflag &= ~(IGNCR | IUCLC); - n_tio.c_iflag &= ~(IGNCR | IUCLC);
+ +
@ -11,7 +11,7 @@ $OpenBSD: patch-conserver_consent_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
n_tio.c_iflag |= ICRNL; n_tio.c_iflag |= ICRNL;
if (pCE->ixon == FLAGTRUE) if (pCE->ixon == FLAGTRUE)
n_tio.c_iflag |= IXON; n_tio.c_iflag |= IXON;
@@ -595,10 +596,8 @@ VirtDev(pCE) @@ -565,10 +566,8 @@ SetupTty(pCE, fd)
n_tio.c_iflag |= IXANY; n_tio.c_iflag |= IXANY;
if (pCE->ixoff == FLAGTRUE) if (pCE->ixoff == FLAGTRUE)
n_tio.c_iflag |= IXOFF; n_tio.c_iflag |= IXOFF;

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-conserver_cutil_c,v 1.3 2008/06/21 11:29:25 sthen Exp $ $OpenBSD: patch-conserver_cutil_c,v 1.4 2014/09/08 16:12:11 sthen Exp $
--- conserver/cutil.c.orig Tue Dec 26 07:27:34 2006 --- conserver/cutil.c.orig Fri Apr 4 17:17:10 2014
+++ conserver/cutil.c Fri Oct 12 11:45:03 2007 +++ conserver/cutil.c Tue Sep 2 20:27:36 2014
@@ -2189,7 +2189,7 @@ ProbeInterfaces(bindAddr) @@ -2198,7 +2198,7 @@ ProbeInterfaces(bindAddr)
{ {
#ifdef SIOCGIFCONF #ifdef SIOCGIFCONF
struct ifconf ifc; struct ifconf ifc;
@ -10,7 +10,7 @@ $OpenBSD: patch-conserver_cutil_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
#ifdef SIOCGIFFLAGS #ifdef SIOCGIFFLAGS
struct ifreq ifrcopy; struct ifreq ifrcopy;
#endif #endif
@@ -2258,7 +2258,7 @@ ProbeInterfaces(bindAddr) @@ -2267,7 +2267,7 @@ ProbeInterfaces(bindAddr)
* than loop through looking for valid interfaces that are up * than loop through looking for valid interfaces that are up
* twice, huh? * twice, huh?
*/ */
@ -19,23 +19,23 @@ $OpenBSD: patch-conserver_cutil_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
CONDDEBUG((1, "ProbeInterfaces(): ifc_len==%d max_count==%d", CONDDEBUG((1, "ProbeInterfaces(): ifc_len==%d max_count==%d",
ifc.ifc_len, count)); ifc.ifc_len, count));
@@ -2277,17 +2277,18 @@ ProbeInterfaces(bindAddr) @@ -2286,17 +2286,18 @@ ProbeInterfaces(bindAddr)
for (m = r = 0; r < ifc.ifc_len;) { for (m = r = 0; r < ifc.ifc_len;) {
struct sockaddr *sa; struct sockaddr *sa;
- ifr = (struct ifreq *)&ifc.ifc_buf[r]; - ifr = (struct ifreq *)&ifc.ifc_buf[r];
- sa = (struct sockaddr *)&ifr->ifr_addr; - sa = (struct sockaddr *)&ifr->ifr_addr;
+
+ memcpy(&ifr, &ifc.ifc_buf[r], sizeof(ifr)); + memcpy(&ifr, &ifc.ifc_buf[r], sizeof(ifr));
+ sa = (struct sockaddr *)&ifr.ifr_addr; + sa = (struct sockaddr *)&ifr.ifr_addr;
+
/* don't use less than a ifreq sized chunk */ /* don't use less than a ifreq sized chunk */
- if ((ifc.ifc_len - r) < sizeof(*ifr)) - if ((ifc.ifc_len - r) < sizeof(*ifr))
+ if ((ifc.ifc_len - r) < sizeof(ifr)) + if ((ifc.ifc_len - r) < sizeof(ifr))
break; break;
#ifdef HAVE_SA_LEN #ifdef HAVE_SA_LEN
- if (sa->sa_len > sizeof(ifr->ifr_addr)) - if (sa->sa_len > sizeof(ifr->ifr_ifru))
- r += sizeof(ifr->ifr_name) + sa->sa_len; - r += sizeof(ifr->ifr_name) + sa->sa_len;
+ if (sa->sa_len > sizeof(ifr.ifr_addr)) + if (sa->sa_len > sizeof(ifr.ifr_ifru))
+ r += sizeof(ifr.ifr_name) + sa->sa_len; + r += sizeof(ifr.ifr_name) + sa->sa_len;
else else
#endif #endif
@ -44,7 +44,7 @@ $OpenBSD: patch-conserver_cutil_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
if (sa->sa_family == AF_INET) { if (sa->sa_family == AF_INET) {
struct sockaddr_in *sin = (struct sockaddr_in *)sa; struct sockaddr_in *sin = (struct sockaddr_in *)sa;
@@ -2308,14 +2309,14 @@ ProbeInterfaces(bindAddr) @@ -2317,14 +2318,14 @@ ProbeInterfaces(bindAddr)
#ifdef SIOCGIFFLAGS #ifdef SIOCGIFFLAGS
/* make sure the interface is up */ /* make sure the interface is up */
@ -61,7 +61,7 @@ $OpenBSD: patch-conserver_cutil_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
#if HAVE_MEMCPY #if HAVE_MEMCPY
memcpy(&myAddrs[m], &(sin->sin_addr), sizeof(struct in_addr)); memcpy(&myAddrs[m], &(sin->sin_addr), sizeof(struct in_addr));
@@ -2324,7 +2325,7 @@ ProbeInterfaces(bindAddr) @@ -2333,7 +2334,7 @@ ProbeInterfaces(bindAddr)
#endif #endif
Verbose("interface address %s (%s)", inet_ntoa(myAddrs[m]), Verbose("interface address %s (%s)", inet_ntoa(myAddrs[m]),

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-conserver_group_c,v 1.3 2008/06/21 11:29:25 sthen Exp $ $OpenBSD: patch-conserver_group_c,v 1.4 2014/09/08 16:12:11 sthen Exp $
--- conserver/group.c.orig Mon Apr 2 19:18:59 2007 --- conserver/group.c.orig Fri Apr 4 17:17:10 2014
+++ conserver/group.c Fri Oct 12 12:03:25 2007 +++ conserver/group.c Tue Sep 2 20:24:00 2014
@@ -2505,7 +2505,7 @@ TelOpt(o) @@ -2911,7 +2911,7 @@ TelOpt(o)
if (o < sizeof(telopts) / sizeof(char *)) if (o < sizeof(telopts) / sizeof(char *))
return telopts[o]; return telopts[o];
else { else {
@ -10,17 +10,3 @@ $OpenBSD: patch-conserver_group_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
return opt; return opt;
} }
} }
@@ -3839,11 +3839,9 @@ DoClientRead(pGE, pCLServing)
"failed]\r\n", -1);
continue;
}
- if (TAB3 == (TABDLY & sbuf.c_oflag)) {
- sbuf.c_oflag &= ~TABDLY;
- sbuf.c_oflag |= TAB0;
+ if (TAB3 & sbuf.c_oflag) {
+ sbuf.c_oflag &= ~TAB3;
} else {
- sbuf.c_oflag &= ~TABDLY;
sbuf.c_oflag |= TAB3;
}
if (-1 ==

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-console_console_c,v 1.3 2008/06/21 11:29:25 sthen Exp $ $OpenBSD: patch-console_console_c,v 1.4 2014/09/08 16:12:11 sthen Exp $
--- console/console.c.orig Thu Jun 15 04:01:05 2006 --- console/console.c.orig Wed Apr 2 01:02:47 2014
+++ console/console.c Fri Oct 12 11:29:17 2007 +++ console/console.c Tue Sep 2 20:24:00 2014
@@ -577,7 +577,7 @@ C2Raw() @@ -679,7 +679,7 @@ C2Raw()
Bye(EX_UNAVAILABLE); Bye(EX_UNAVAILABLE);
} }
n_tios = o_tios; n_tios = o_tios;

View File

@ -1,4 +1,4 @@
$OpenBSD: README,v 1.3 2014/07/15 13:47:26 benno Exp $ $OpenBSD: README,v 1.4 2014/09/08 16:12:11 sthen Exp $
+----------------------------------------------------------------------- +-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD | Running ${FULLPKGNAME} on OpenBSD
@ -11,6 +11,12 @@ to group dialer in /etc/group:
dialer:*:117:_conserver dialer:*:117:_conserver
This is not necessary if you only use it to log and control access to This is not necessary if you only use it to log and control access to
terminal servers over the network. terminal servers over the network rather than on local serial ports.
If you have upgraded from a previous version of the OpenBSD package which
ran as root, you will need to change permissions/ownership on log files to
ensure that the _conserver user can write to them, e.g.:
chown _conserver /var/log/conserver /var/log/consoles/*
See more information at http://www.conserver.com/ See more information at http://www.conserver.com/