SHA256
1
0
forked from pool/cpio
cpio/cpio-fix_truncation_check.patch
Ismail Dönmez d69eec703b Accepting request 242845 from home:vitezslav_cizek:branches:Archiving
- fix a truncation check in mt
  * added cpio-fix_truncation_check.patch

- prevent cpio from extracting over a symlink (bnc#658010)
  * added cpio-check_for_symlinks.patch

OBS-URL: https://build.opensuse.org/request/show/242845
OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=44
2014-07-29 11:44:14 +00:00

14 lines
492 B
Diff

Index: cpio-2.11/src/mt.c
===================================================================
--- cpio-2.11.orig/src/mt.c 2014-07-29 11:02:31.631881572 +0200
+++ cpio-2.11/src/mt.c 2014-07-29 11:02:31.665881951 +0200
@@ -428,7 +428,7 @@ parse_opt (int key, char *arg, struct ar
{
char *p;
long val = strtol (arg, &p, 0);
- if (*p || (count = val) != count)
+ if (*p || (count = val) != val)
error (MT_EXIT_INVOP, 0, _("invalid count value"));
}
break;