From 2eb4db8d794a8992325831a43a34088bc7bcc50c Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 23 Feb 2008 18:17:48 +0000 Subject: [PATCH] best fix for the bad logic in tar.c, now all tests pass that should --- ext/phar/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/phar/tar.c b/ext/phar/tar.c index 0ddf071305..c1ed850171 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -475,7 +475,7 @@ int phar_tar_flush(phar_archive_data *phar, char *user_stub, long len, char **er } /* set stub */ - if (user_stub && (len < 0 || (len == sizeof("dummy") - 1 && !strncmp(user_stub, "dummy", sizeof("dummy")-1)))) { + if (user_stub && len) { char *pos; if (len < 0) { /* resource passed in */ -- 2.50.1