aboutsummaryrefslogtreecommitdiff
path: root/archivers/ha/files/patch-nix_machine.c
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2021-09-27 17:42:12 +0000
committerAlex Kozlov <ak@FreeBSD.org>2021-09-30 02:26:49 +0000
commite28d4d2d9db45e93658e1e4684e4995ca0195e76 (patch)
treed1e265d49a8b02972e579489337b3dbb90fd4b9c /archivers/ha/files/patch-nix_machine.c
parente8a8d2eb01e594195cc7f044f3b528a55a2c515f (diff)
downloadports-e28d4d2d9db45e93658e1e4684e4995ca0195e76.tar.gz
ports-e28d4d2d9db45e93658e1e4684e4995ca0195e76.zip
archivers/ha: Fix CVE-2015-1198
Fix directory traversal vulnerabilities (CVE-2015-1198) Reported by: decke (cherry picked from commit 0e6da3c2e1f0ca151be9e6428dcc9c0b7f19d170)
Diffstat (limited to 'archivers/ha/files/patch-nix_machine.c')
-rw-r--r--archivers/ha/files/patch-nix_machine.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/archivers/ha/files/patch-nix_machine.c b/archivers/ha/files/patch-nix_machine.c
deleted file mode 100644
index 735343ea7fd5..000000000000
--- a/archivers/ha/files/patch-nix_machine.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- nix/machine.c.orig 1995-01-12 06:53:00 UTC
-+++ nix/machine.c
-@@ -417,7 +417,7 @@ char *md_stripname(char *mdfullpath) {
- if (plainname!=NULL) free(plainname),plainname=NULL;
- if ((plainname=malloc(strlen(mdfullpath)+1))==NULL)
- error(1,ERR_MEM,"md_stripname()");
-- for (i=strlen(mdfullpath)-1;i>0;i--) {
-+ for (i=strlen(mdfullpath)-1;i>=0;i--) {
- if (mdfullpath[i]=='/') {
- i++;
- break;