check for . and ..
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@68 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
e9a719ea90
commit
f20200f40c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue