diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2022-02-12 21:13:39 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2022-02-12 21:13:39 +0100 |
commit | 92d7d4dd0f32b8626bfe609dca00e33a5c049bb8 (patch) | |
tree | bc9f4f31a36a6857e54a83363ffa52a7f0480594 /debian/patches/make-zsh-static-really-static-#993843.patch | |
parent | a13f7a2b3efc45af0879bebe63bed7641af4b39f (diff) | |
download | zsh-92d7d4dd0f32b8626bfe609dca00e33a5c049bb8.tar.gz zsh-92d7d4dd0f32b8626bfe609dca00e33a5c049bb8.zip |
Zsh 5.8.1: Refresh patches, drop cherry-picked patch for commit 754658af
Diffstat (limited to 'debian/patches/make-zsh-static-really-static-#993843.patch')
-rw-r--r-- | debian/patches/make-zsh-static-really-static-#993843.patch | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/debian/patches/make-zsh-static-really-static-#993843.patch b/debian/patches/make-zsh-static-really-static-#993843.patch index 1257ee8d5..60b7b8bc9 100644 --- a/debian/patches/make-zsh-static-really-static-#993843.patch +++ b/debian/patches/make-zsh-static-really-static-#993843.patch @@ -5,11 +5,9 @@ Bug: https://zsh.org/workers/49392 Author: Axel Beckert <abe@debian.org> Author: Jun T <takimoto-j@kba.biglobe.ne.jp> -diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c -index ef9148d7b..b44555323 100644 --- a/Src/Modules/parameter.c +++ b/Src/Modules/parameter.c -@@ -2011,6 +2011,9 @@ scanpmdissaliases(HashTable ht, ScanFunc func, int flags) +@@ -2011,6 +2011,9 @@ /**/ static Groupset get_all_groups(void) { @@ -19,7 +17,7 @@ index ef9148d7b..b44555323 100644 Groupset gs = zhalloc(sizeof(*gs)); Groupmap gaptr; gid_t *list, *lptr, egid; -@@ -2063,6 +2066,7 @@ static Groupset get_all_groups(void) +@@ -2063,6 +2066,7 @@ } return gs; @@ -27,7 +25,7 @@ index ef9148d7b..b44555323 100644 } /* Standard hash element lookup. */ -@@ -2081,7 +2085,11 @@ getpmusergroups(UNUSED(HashTable ht), const char *name) +@@ -2081,7 +2085,11 @@ pm->gsu.s = &nullsetscalar_gsu; if (!gs) { @@ -39,7 +37,7 @@ index ef9148d7b..b44555323 100644 pm->u.str = dupstring(""); pm->node.flags |= (PM_UNSET|PM_SPECIAL); return &pm->node; -@@ -2113,7 +2121,11 @@ scanpmusergroups(UNUSED(HashTable ht), ScanFunc func, int flags) +@@ -2113,7 +2121,11 @@ Groupmap gaptr; if (!gs) { @@ -51,11 +49,9 @@ index ef9148d7b..b44555323 100644 return; } -diff --git a/Src/hashnameddir.c b/Src/hashnameddir.c -index bed43d025..cbd1344ef 100644 --- a/Src/hashnameddir.c +++ b/Src/hashnameddir.c -@@ -178,7 +178,7 @@ fillnameddirtable(UNUSED(HashTable ht)) +@@ -178,7 +178,7 @@ /* Using NIS or NIS+ didn't add any user directories. This seems * fishy, so we fall back to using getpwent(). If we don't have * that, we only use the passwd file. */ @@ -64,7 +60,7 @@ index bed43d025..cbd1344ef 100644 struct passwd *pw; setpwent(); -@@ -190,7 +190,7 @@ fillnameddirtable(UNUSED(HashTable ht)) +@@ -190,7 +190,7 @@ endpwent(); usepwf = 0; @@ -73,7 +69,7 @@ index bed43d025..cbd1344ef 100644 } if (usepwf) { /* Don't forget the non-NIS matches from the flat passwd file */ -@@ -229,7 +229,7 @@ fillnameddirtable(UNUSED(HashTable ht)) +@@ -229,7 +229,7 @@ adduserdir(pw->pw_name, pw->pw_dir, ND_USERNAME, 1); endpwent(); @@ -82,11 +78,9 @@ index bed43d025..cbd1344ef 100644 #endif allusersadded = 1; } -diff --git a/Src/options.c b/Src/options.c -index 783022591..a1fe918fc 100644 --- a/Src/options.c +++ b/Src/options.c -@@ -811,7 +811,7 @@ dosetopt(int optno, int value, int force, char *new_opts) +@@ -807,7 +807,7 @@ return -1; } @@ -95,11 +89,9 @@ index 783022591..a1fe918fc 100644 /* Set the supplementary groups list. * * Note that on macOS, FreeBSD, and possibly some other platforms, -diff --git a/Src/params.c b/Src/params.c -index 4f6b361f9..704aad588 100644 --- a/Src/params.c +++ b/Src/params.c -@@ -843,9 +843,12 @@ createparamtable(void) +@@ -841,9 +841,12 @@ setsparam("HOST", ztrdup_metafy(hostnam)); zfree(hostnam, 256); @@ -115,7 +107,7 @@ index 4f6b361f9..704aad588 100644 #if !defined(HAVE_PUTENV) && !defined(USE_SET_UNSET_ENV) /* Copy the environment variables we are inheriting to dynamic * -@@ -4430,7 +4433,7 @@ usernamegetfn(UNUSED(Param pm)) +@@ -4414,7 +4417,7 @@ void usernamesetfn(UNUSED(Param pm), char *x) { @@ -124,7 +116,7 @@ index 4f6b361f9..704aad588 100644 struct passwd *pswd; if (x && (pswd = getpwnam(x)) && (pswd->pw_uid != cached_uid)) { -@@ -4447,7 +4450,7 @@ usernamesetfn(UNUSED(Param pm), char *x) +@@ -4431,7 +4434,7 @@ cached_uid = pswd->pw_uid; } } @@ -133,11 +125,9 @@ index 4f6b361f9..704aad588 100644 zsfree(x); } -diff --git a/Src/utils.c b/Src/utils.c -index c32741ca7..a74c8bd2c 100644 --- a/Src/utils.c +++ b/Src/utils.c -@@ -1119,7 +1119,7 @@ char *cached_username; +@@ -1115,7 +1115,7 @@ char * get_username(void) { @@ -146,7 +136,7 @@ index c32741ca7..a74c8bd2c 100644 struct passwd *pswd; uid_t current_uid; -@@ -1132,9 +1132,9 @@ get_username(void) +@@ -1128,9 +1128,9 @@ else cached_username = ztrdup(""); } @@ -158,7 +148,7 @@ index c32741ca7..a74c8bd2c 100644 return cached_username; } -@@ -1310,7 +1310,7 @@ getnameddir(char *name) +@@ -1306,7 +1306,7 @@ return str; } @@ -167,7 +157,7 @@ index c32741ca7..a74c8bd2c 100644 { /* Retrieve an entry from the password table/database for this user. */ struct passwd *pw; -@@ -1326,7 +1326,7 @@ getnameddir(char *name) +@@ -1322,7 +1322,7 @@ return dupstring(pw->pw_dir); } } |