[117116] trunk/dports/net/openssh/files/lastlog.patch

cal at macports.org cal at macports.org
Sun Feb 16 14:16:37 PST 2014


Revision: 117116
          https://trac.macports.org/changeset/117116
Author:   cal at macports.org
Date:     2014-02-16 14:16:37 -0800 (Sun, 16 Feb 2014)
Log Message:
-----------
openssh: delete another unused patchfile

Removed Paths:
-------------
    trunk/dports/net/openssh/files/lastlog.patch

Deleted: trunk/dports/net/openssh/files/lastlog.patch
===================================================================
--- trunk/dports/net/openssh/files/lastlog.patch	2014-02-16 22:15:18 UTC (rev 117115)
+++ trunk/dports/net/openssh/files/lastlog.patch	2014-02-16 22:16:37 UTC (rev 117116)
@@ -1,50 +0,0 @@
-diff -uNr ../openssh-5.0p1.orig/loginrec.c ./loginrec.c
---- ../openssh-5.0p1.orig/loginrec.c	2007-04-28 19:10:58.000000000 -0700
-+++ ./loginrec.c	2008-04-17 12:43:18.000000000 -0700
-@@ -1456,6 +1456,38 @@
-  **/
- 
- #ifdef USE_LASTLOG
-+#ifdef __APPLE_UTMPX__
-+int
-+lastlog_write_entry(struct logininfo *li)
-+{
-+	switch(li->type) {
-+	case LTYPE_LOGIN:
-+		return 1; /* lastlog written by pututxline */
-+	default:
-+		logit("lastlog_write_entry: Invalid type field");
-+		return 0;
-+	}
-+}
-+
-+int
-+lastlog_get_entry(struct logininfo *li)
-+{
-+	struct lastlogx l, *ll;
-+
-+	if ((ll = getlastlogxbyname(li->username, &l)) == NULL) {
-+		memset(&l, '\0', sizeof(l));
-+		ll = &l;
-+	}
-+	line_fullname(li->line, ll->ll_line, sizeof(li->line));
-+	strlcpy(li->hostname, ll->ll_host,
-+		MIN_SIZEOF(li->hostname, ll->ll_host));
-+	li->tv_sec = ll->ll_tv.tv_sec;
-+	li->tv_usec = ll->ll_tv.tv_usec;
-+	return (1);
-+}
-+
-+#else /* !__APPLE_UTMPX__ */
-+
- #define LL_FILE 1
- #define LL_DIR 2
- #define LL_OTHER 3
-@@ -1613,6 +1645,7 @@
- 	/* NOTREACHED */
- 	return (0);
- }
-+#endif /* __APPLE_UTMPX__ */
- #endif /* USE_LASTLOG */
- 
- #ifdef USE_BTMP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140216/48adeff3/attachment.html>


More information about the macports-changes mailing list