chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / alpine / pw_stuff.c.patch
1 --- ../cache/alpine-2.20/pith/osdep/pw_stuff.c  2015-01-12 05:12:25.588178837 +0000
2 +++ ./pith/osdep/pw_stuff.c     2016-12-11 21:24:31.283700286 +0000
3 @@ -103,12 +103,6 @@
4         len = strlen(fname_to_utf8(unix_pwd->pw_name));
5         ui->login = (char *) malloc((len+1) * sizeof(char));
6         snprintf(ui->login, len+1, "%s", fname_to_utf8(unix_pwd->pw_name));
7 -
8 -       if((s = gcos_name(unix_pwd->pw_gecos, unix_pwd->pw_name)) != NULL){
9 -           len = strlen(fname_to_utf8(s));
10 -           ui->fullname = (char *) malloc((len+1) * sizeof(char));
11 -           snprintf(ui->fullname, len+1, "%s", fname_to_utf8(s));
12 -       }
13      }
14  
15  #else  /* _WINDOWS */
16 @@ -190,12 +184,6 @@
17      if(pw != NULL){
18         char   *gn, *s = NULL;
19         size_t  l;
20 -
21 -       if((gn = gcos_name(pw->pw_gecos, name)) != NULL
22 -          && (s = (char *) malloc(l  = ((strlen(gn) + 1) * sizeof(char)))) != NULL)
23 -         snprintf(s, l, "%s", gn);
24 -
25 -       return(s);
26      }
27      else
28        return((char *) NULL);