X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fnames.c;h=585ad39ba7238ff6e7583a6afe89c08c6da35923;hb=764174dc1d4b5965c9cbb8f3dbfbf72ebab1ee8a;hp=2eb7629c0d9911e7ec4261cd3692160d02404129;hpb=983d328ff2800110e43285cb08b9b000fccdd569;p=chaz%2Ftar diff --git a/src/names.c b/src/names.c index 2eb7629..585ad39 100644 --- a/src/names.c +++ b/src/names.c @@ -1,11 +1,11 @@ /* Various processing of names. Copyright (C) 1988, 1992, 1994, 1996, 1997, 1998, 1999, 2000, 2001, - 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any later + Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but @@ -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)); } }