]> skyeroc.xyz Git - dgamelaunch/commitdiff
check for . and ..
authorJoshua Kwan <joshk@triplehelix.org>
Sun, 4 Jan 2004 02:28:57 +0000 (02:28 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Sun, 4 Jan 2004 02:28:57 +0000 (02:28 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@68 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index e8c3328195331f01add3162ed521de52220e7f7e..b8a2b5c67e39556cc906af38e02371d849d78d3f 100644 (file)
@@ -1132,6 +1132,9 @@ purge_stale_locks (void)
       pid_t pid;
       int seconds = 0;
 
+      if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, ".."))
+         continue;
+
       colon = strchr (dent->d_name, ':');
       /* should never happen */
       if (!colon)