termux-packages/packages/rsync/rsync-3.1.3_lib_getpass.c.patch
Leonid Pliushch 6d33f94a5f fix packages that require getpass()
Changed packages:

  * alpine
  * dropbear
  * emacs
  * isync
  * lftp
  * msmtp
  * newsboat
  * rsync
  * screen
  * texlive-bin
  * unrar
  * w3m
2018-09-11 00:55:00 +02:00

17 lines
379 B
Diff

diff -uNr rsync-3.1.3/lib/getpass.c rsync-3.1.3.mod/lib/getpass.c
--- rsync-3.1.3/lib/getpass.c 2013-05-20 01:01:29.000000000 +0300
+++ rsync-3.1.3.mod/lib/getpass.c 2018-08-16 13:29:02.517996377 +0300
@@ -23,6 +23,7 @@
#include "rsync.h"
+#ifndef HAVE_GETPASS
char *getpass(const char *prompt)
{
static char password[256];
@@ -70,3 +71,4 @@
return NULL;
}
+#endif