termux-packages/x11-packages/putty/putty-0.70_unix_uxmisc.c.patch
Leonid Pliushch 1eccf83490
new package: putty
A terminal integrated SSH/Telnet client.
2022-04-18 14:08:26 +05:30

20 lines
481 B
Diff

diff -uNr putty-0.70/unix/uxmisc.c putty-0.70.mod/unix/uxmisc.c
--- putty-0.70/unix/uxmisc.c 2017-07-04 22:30:56.000000000 +0300
+++ putty-0.70.mod/unix/uxmisc.c 2018-10-05 20:12:00.693981290 +0300
@@ -131,7 +131,6 @@
* coping correctly with people who have su'ed.
*/
user = getlogin();
- setpwent();
if (user)
p = getpwnam(user);
else
@@ -153,7 +152,6 @@
return NULL;
ret = p->pw_name;
}
- endpwent();
return dupstr(ret);
}