From 2ea0ed9ad0cef7da4e105987963027e249a8f528 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 3 Jul 2005 14:06:17 +0000 Subject: Disable btmp logging, since Debian's /var/log/btmp has inappropriate permissions (closes: #314956). --- debian/changelog | 2 ++ debian/rules | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 97794c9e4..94334d2c6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ openssh (1:4.1p1-5) UNRELEASED; urgency=low * Make /usr/share/doc/openssh-server and /usr/share/doc/ssh symlinks to /usr/share/doc/openssh-client (closes: #314745). * Ship README.dns (closes: #284874). + * Disable btmp logging, since Debian's /var/log/btmp has inappropriate + permissions (closes: #314956). * debconf template translations: - Update Brazilian Portuguese (thanks, André Luís Lopes; closes: #315477). diff --git a/debian/rules b/debian/rules index 9eebacfb2..fad195dac 100755 --- a/debian/rules +++ b/debian/rules @@ -77,6 +77,8 @@ ifeq ($(DEB_HOST_ARCH_OS),linux) # Some 2.2 kernels have trouble with setres[ug]id() (bug #239999). perl -pi -e 's/.*#undef (BROKEN_SETRES[UG]ID).*/#define $$1 1/' build-deb/config.h endif + # Debian's /var/log/btmp has inappropriate permissions. + perl -pi -e 's,.*#define USE_BTMP .*,/* #undef USE_BTMP */,' build-deb/config.h $(MAKE) -C build-deb -j 2 ASKPASS_PROGRAM='/usr/bin/ssh-askpass' CFLAGS='$(OPTFLAGS) -g -Wall -DLOGIN_PROGRAM=\"/bin/login\" -DLOGIN_NO_ENDOPT -DSSHD_PAM_SERVICE=\"ssh\" -DSSH_EXTRAVERSION="\" $(SSH_EXTRAVERSION)\""' # Support building on Debian 3.0 (with GNOME 1.4) and later. @@ -93,6 +95,8 @@ build-udeb-stamp: dh_testdir mkdir -p build-udeb cd build-udeb && $(FORCE_LIBS) ../configure --prefix=/usr --sysconfdir=/etc/ssh --libexecdir=/usr/lib/openssh --without-xauth --with-default-path=/usr/local/bin:/bin:/usr/bin --with-superuser-path=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin --with-4in6 --with-privsep-path=/var/run/sshd --without-rand-helper + # Debian's /var/log/btmp has inappropriate permissions. + perl -pi -e 's,.*#define USE_BTMP .*,/* #undef USE_BTMP */,' build-deb/config.h # Avoid libnsl linkage. Ugh. perl -pi -e 's/ +-lnsl//' build-udeb/config.status cd build-udeb && ./config.status -- cgit v1.2.3