[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] remove redundant checking for . and .. now that



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerlist.c 
Log Message:
remove redundant checking for . and .. now that
tor_listdir() checks for this too.


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -d -r1.358 -r1.359
--- routerlist.c	1 Nov 2005 03:48:51 -0000	1.358
+++ routerlist.c	1 Nov 2005 03:50:14 -0000	1.359
@@ -101,8 +101,6 @@
   entries = tor_listdir(filename);
   SMARTLIST_FOREACH(entries, const char *, fn, {
       char buf[DIGEST_LEN];
-      if (fn[0] == '.') /* skip . and .. */
-        continue;
       if (strlen(fn) != HEX_DIGEST_LEN ||
           base16_decode(buf, sizeof(buf), fn, strlen(fn))) {
         info(LD_DIR,