changeset 388:8e14809bf172 noffle

[svn] * src/content.c: Don't be fooled into thinking a filename starting ".." is just "..".
author bears
date Thu, 22 May 2003 09:27:02 +0100
parents 0137b5490cca
children f81fdcc2696b
files src/content.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/content.c	Thu May 22 09:26:25 2003 +0100
+++ b/src/content.c	Thu May 22 09:27:02 2003 +0100
@@ -1,7 +1,7 @@
 /*
   content.c
 
-  $Id: content.c 453 2003-02-21 16:01:28Z bears $
+  $Id: content.c 530 2003-05-22 08:27:02Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -363,9 +363,8 @@
 	switch( d->d_name[1] )
 	{
 	case '\0':
-	case '.':
 	    break;
-
+	    
 	case '#':
             snprintf( tmpfname, MAXCHAR, "%s/overview/%s",
               Cfg_spoolDir(), d->d_name ); 
@@ -376,6 +375,11 @@
 			 tmpfname, strerror(errno) );
 	    break;
 
+	case '.':
+	    if ( d->d_name[2] == '\0' )
+		break;
+	    /* Otherwise fall through - filename starting "..". */
+
 	default:
 	    Log_err( "Unknown file %s in %s/overview - please delete",
 		     d->d_name, Cfg_spoolDir() );