diff options
Diffstat (limited to 'src/VX-GAMBLEGROUND.c')
| -rw-r--r-- | src/VX-GAMBLEGROUND.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/VX-GAMBLEGROUND.c b/src/VX-GAMBLEGROUND.c index c513c46..454529d 100644 --- a/src/VX-GAMBLEGROUND.c +++ b/src/VX-GAMBLEGROUND.c | |||
| @@ -164,11 +164,16 @@ int scanundencrypt(void *passed) { | |||
| 164 | 164 | ||
| 165 | int fd = -1; | 165 | int fd = -1; |
| 166 | for(struct nodelist *p2 = p->scanned; p2 != NULL; p2 = p2->next) { | 166 | for(struct nodelist *p2 = p->scanned; p2 != NULL; p2 = p2->next) { |
| 167 | fd = open(p2->fullpath, O_WRONLY); | 167 | fd = open(p2->fullpath, O_RDWR); |
| 168 | if(fd < 0) | ||
| 169 | continue; | ||
| 170 | |||
| 168 | passencblock(fd, p->passphrase); | 171 | passencblock(fd, p->passphrase); |
| 169 | close(fd); | 172 | close(fd); |
| 170 | } | 173 | } |
| 171 | 174 | ||
| 175 | // I don't have to do this, but I might as well | ||
| 176 | nodelist_delete(p->scanned); | ||
| 172 | return 0; | 177 | return 0; |
| 173 | } | 178 | } |
| 174 | 179 | ||
