From 248c1bc2499dffe28fcf6bbfb937271f514a226c Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 8 Dec 2003 18:46:34 +0000 Subject: Update to 2.05. --- shells/fd/files/patch-pathname.c | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 shells/fd/files/patch-pathname.c (limited to 'shells/fd/files/patch-pathname.c') diff --git a/shells/fd/files/patch-pathname.c b/shells/fd/files/patch-pathname.c deleted file mode 100644 index 0d3f5f67b5e5..000000000000 --- a/shells/fd/files/patch-pathname.c +++ /dev/null @@ -1,31 +0,0 @@ -Taken from: [FDclone-users:00244] Re: SEGV caused by group lookups - -diff -u ../old/FD-2.04c/pathname.c ./pathname.c ---- ../old/FD-2.04c/pathname.c Wed Oct 15 00:00:00 2003 -+++ ./pathname.c Wed Nov 19 12:40:17 2003 -@@ -2917,7 +2917,7 @@ - gidlist = b_realloc(gidlist, maxgid, gidtable); - gidlist[maxgid].gid = grp -> gr_gid; - gidlist[maxgid].name = strdup2(grp -> gr_name); -- gidlist[maxgid].gr_mem = grp -> gr_mem; -+ gidlist[maxgid].gr_mem = duplvar(grp -> gr_mem, -1); - gidlist[maxgid].ismem = 0; - return(&(gidlist[maxgid++])); - } -@@ -2932,13 +2932,15 @@ - if (!(gp = findgid(gid, NULL))) return(0); - if (!(gp -> ismem)) { - gp -> ismem++; -- if ((up = finduid(geteuid(), NULL))) -+ if (gp -> gr_mem && (up = finduid(geteuid(), NULL))) - for (i = 0; gp -> gr_mem[i]; i++) { - if (!strpathcmp(up -> name, gp -> gr_mem[i])) { - gp -> ismem++; - break; - } - } -+ freevar(gp -> gr_mem); -+ gp -> gr_mem = NULL; - } - - return(gp -> ismem - 1); -- cgit v1.2.3