check for . and ..

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@68 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-04 02:28:57 +00:00
parent e9a719ea90
commit f20200f40c
1 changed files with 3 additions and 0 deletions

View 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)