Report forwarded to debian-bugs-dist@lists.debian.org, Guy Maor <maor@debian.org>:
Bug#8815; Package getty.
debian-bugs-dist@lists.debian.orgGuy Maor <maor@debian.org>
Sorry, this message was lost when this bug report was restored from a backup.
Acknowledgement sent to Michael Alan Dorman <mdorman@lot49.med.miami.edu>:
New bug report received and forwarded. Copy sent to Guy Maor <maor@debian.org>.
Michael Alan Dorman <mdorman@lot49.med.miami.edu>
Sorry, this message was lost when this bug report was restored from a backup.
Received: (at submit) by bugs.debian.org; 17 Apr 1997 17:49:36 +0000
Received: (qmail 23934 invoked from network); 17 Apr 1997 17:49:33 -0000
Received: from lot49.med.miami.edu (qmailr@129.171.78.10)
by master.debian.org with SMTP; 17 Apr 1997 17:49:32 -0000
Received: (qmail 23799 invoked by uid 1000); 17 Apr 2017 12:49:15 -0000
Date: 17 Apr 2017 12:49:15 -0000
Message-ID: <20170417124915.23798.qmail@lot49.med.miami.edu>
From: Michael Alan Dorman
Subject: getty: glibc patches...
To: submit@bugs.debian.org
X-Mailer: bug 2.92
Package: getty
Version: 1.45a-3
These also fix problems in login.c &c., even though they're no longer
used.
Mike.
diff -uNr poeigl-1.45a/Makefile poeigl-1.45a.a/Makefile
--- poeigl-1.45a/Makefile Mon Apr 17 12:47:41 2017
+++ poeigl-1.45a.a/Makefile Mon Apr 17 12:41:15 2017
@@ -30,10 +30,16 @@
# systems
LDFLAGS= -s
+GLIBC=$(shell -s -c __GLIBC__ /usr/include/version.h)
# Set LIBS = -lshadow if you want to support shadow passwords in login
# Add -lyp to LIBS if you want YP unless there's already YP support in your
# C library.
+ifeq (0,$(GLIBC))
LIBS =
+else
+LIBS = -lcrypt
+LOADLIBES = -lcrypt
+endif
loginobj = login.o getpass.o checktty.o cryptocard.o
agettyobj = agetty.o
diff -uNr poeigl-1.45a/agetty.c poeigl-1.45a.a/agetty.c
--- poeigl-1.45a/agetty.c Mon Apr 17 12:47:41 2017
+++ poeigl-1.45a.a/agetty.c Mon Apr 17 12:40:14 2017
@@ -114,7 +114,9 @@
* Release <3).
*/
+#ifndef BUFSIZ
#define BUFSIZ 1024
+#endif
/*
* When multiple baud rates are specified on the command line, the first one
diff -uNr poeigl-1.45a/domainname.c poeigl-1.45a.a/domainname.c
--- poeigl-1.45a/domainname.c Fri Jul 30 20:43:02 1993
+++ poeigl-1.45a.a/domainname.c Mon Apr 17 12:40:14 2017
@@ -4,6 +4,7 @@
#include
#include
#include
+#include
#define MAXDNAME 64
diff -uNr poeigl-1.45a/login.c poeigl-1.45a.a/login.c
--- poeigl-1.45a/login.c Mon Apr 17 12:47:41 2017
+++ poeigl-1.45a.a/login.c Mon Apr 17 12:40:15 2017
@@ -117,6 +117,10 @@
#include
#include
#include
+#if defined(__GLIBC__)
+#include
+#include
+#endif /* __GLIBC__ */
#ifdef TESTING
# include "utmp.h"
@@ -747,7 +751,11 @@
if(pwd->pw_uid)
(void)setenv("PATH", _PATH_DEFPATH, 1);
else
+#if !defined(__GLIBC__)
(void)setenv("PATH", _PATH_DEFPATH_ROOT, 1);
+#else /* __GLIBC__ */
+ (void)setenv("PATH", _PATH_STDPATH, 1);
+#endif /* __GLIBC__ */
(void)setenv("SHELL", pwd->pw_shell, 1);
(void)setenv("TERM", termenv, 1);
diff -uNr poeigl-1.45a/newgrp.c poeigl-1.45a.a/newgrp.c
--- poeigl-1.45a/newgrp.c Mon Apr 17 12:47:41 2017
+++ poeigl-1.45a.a/newgrp.c Mon Apr 17 12:40:15 2017
@@ -10,6 +10,9 @@
#include
#include
#include
+#if defined(__GLIBC__)
+#include
+#endif /* __GLIBC__ */
#ifndef TRUE
# define TRUE 1
diff -uNr poeigl-1.45a/pathnames.h poeigl-1.45a.a/pathnames.h
--- poeigl-1.45a/pathnames.h Sat Dec 14 16:45:09 1996
+++ poeigl-1.45a.a/pathnames.h Mon Apr 17 12:40:15 2017
@@ -16,7 +16,9 @@
#define _PATH_BSHELL "/bin/sh"
#define _PATH_CSHELL "/bin/csh"
+#if !defined(__GLIBC__)
#define UT_NAMESIZE 8
+#endif /* __GLIBC__ */
#define _PATH_TTY "/dev/tty"
#define TTYTYPES "/etc/ttytype"
#define SECURETTY "/etc/securetty"
-- System Information
Debian Release: 1.2
Kernel Version: Linux lot49 2.0.30 #4 Sun Apr 9 10:23:29 Local time zone must be set--see zic manualalpha alpha unknown
Versions of the packages getty depends on:
libc6.1 Version: 2.0.2-2