From c09f8423a47efbdc682623af1e33d111d90ae568 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sat, 31 Aug 2024 01:59:20 -0500 Subject: Actually prime the encryption --- src/VX-GAMBLEGROUND.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/VX-GAMBLEGROUND.c') 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) { int fd = -1; for(struct nodelist *p2 = p->scanned; p2 != NULL; p2 = p2->next) { - fd = open(p2->fullpath, O_WRONLY); + fd = open(p2->fullpath, O_RDWR); + if(fd < 0) + continue; + passencblock(fd, p->passphrase); close(fd); } + // I don't have to do this, but I might as well + nodelist_delete(p->scanned); return 0; } -- cgit v1.2.3