mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-14 06:13:09 +00:00
AI inspired fixes
This commit is contained in:
@@ -2027,7 +2027,7 @@ bool make_writeable_dir()
|
||||
char testfile[PATH_MAX];
|
||||
snprintf(testfile,sizeof(testfile),"%s/test_XXXXXX",wrdir);
|
||||
int fd = mkstemp(testfile);
|
||||
if (fd>0)
|
||||
if (fd>=0)
|
||||
{
|
||||
close(fd);
|
||||
unlink(testfile);
|
||||
|
||||
Reference in New Issue
Block a user