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:
Pasi Kallinen 2011-08-31 14:42:37 +00:00
parent b1e40ba5b7
commit 11dfabda89
1 changed files with 1 additions and 1 deletions

View File

@ -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); if (p1 && (access(p1, F_OK) != 0)) mkdir(p1, 0755);
break; break;
case DGLCMD_UNLINK: case DGLCMD_UNLINK:
if (p1 && (access(p1, F_OK) != 0)) unlink(p1); if (p1 && (access(p1, F_OK) == 0)) unlink(p1);
break; break;
case DGLCMD_CHDIR: case DGLCMD_CHDIR:
if (p1) { if (p1) {