Fix the "unlink" command so it actually works.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@589 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
b1e40ba5b7
commit
11dfabda89
|
@ -219,7 +219,7 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
|
|||
if (p1 && (access(p1, F_OK) != 0)) mkdir(p1, 0755);
|
||||
break;
|
||||
case DGLCMD_UNLINK:
|
||||
if (p1 && (access(p1, F_OK) != 0)) unlink(p1);
|
||||
if (p1 && (access(p1, F_OK) == 0)) unlink(p1);
|
||||
break;
|
||||
case DGLCMD_CHDIR:
|
||||
if (p1) {
|
||||
|
|
Loading…
Reference in New Issue