termux-packages/packages/openssh/no_loginrec.patch

13 lines
341 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
--- ../openssh-6.4p1/loginrec.c 2013-06-02 00:07:32.000000000 +0200
+++ ./loginrec.c 2014-02-04 21:21:32.000000000 +0100
@@ -429,6 +429,9 @@
int
login_write(struct logininfo *li)
{
+#ifdef __ANDROID__
+ return 1;
+#endif
#ifndef HAVE_CYGWIN
if (geteuid() != 0) {
logit("Attempt to write login records by non-root user (aborting)");