mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-29 00:25:03 +02:00
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;
|
pid_t pid;
|
||||||
int seconds = 0;
|
int seconds = 0;
|
||||||
|
|
||||||
|
if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, ".."))
|
||||||
|
continue;
|
||||||
|
|
||||||
colon = strchr (dent->d_name, ':');
|
colon = strchr (dent->d_name, ':');
|
||||||
/* should never happen */
|
/* should never happen */
|
||||||
if (!colon)
|
if (!colon)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user