mc: multple fixes (#2367)
[termux-packages] / packages / mc / lib-widget-input_complete.c.patch
1 diff -u -r ../mc-4.8.17/lib/widget/input_complete.c ./lib/widget/input_complete.c
2 --- ../mc-4.8.17/lib/widget/input_complete.c 2016-05-07 11:42:52.000000000 -0400
3 +++ ./lib/widget/input_complete.c 2016-05-21 17:03:05.409602557 -0400
4 @@ -313,6 +313,7 @@
5 static char *
6 username_completion_function (const char *text, int state, input_complete_t flags)
7 {
8 +#ifndef __ANDROID__
9 static struct passwd *entry = NULL;
10 static size_t userlen = 0;
11
12 @@ -340,6 +341,7 @@
13 return g_strconcat ("~", entry->pw_name, PATH_SEP_STR, (char *) NULL);
14
15 endpwent ();
16 +#endif
17 return NULL;
18 }
19