Skip to content

Commit

Permalink
Fix the "unlink" command so it actually works.
Browse files Browse the repository at this point in the history
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@589 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
  • Loading branch information
paxed committed Aug 31, 2011
1 parent b1e40ba commit 11dfabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dgl-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11dfabd

Please sign in to comment.