From: Sergey Poznyakoff Date: Sun, 12 Aug 2007 08:25:00 +0000 (+0000) Subject: (contains_dot_dot): Fix double-dot recognition in case of duplicate /. Patch by Dmitr... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e2b8c8fa9f6567ddf60634650dbb4f5ea3462642;p=chaz%2Ftar (contains_dot_dot): Fix double-dot recognition in case of duplicate /. Patch by Dmitry V. Levin. --- diff --git a/src/names.c b/src/names.c index 69ab00e..585ad39 100644 --- a/src/names.c +++ b/src/names.c @@ -1012,11 +1012,10 @@ contains_dot_dot (char const *name) if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2])) return 1; - do + while (! ISSLASH (*p)) { if (! *p++) return 0; } - while (! ISSLASH (*p)); } }