mirror of
https://github.com/tomasriveral/NoteWrapper.git
synced 2026-10-11 17:26:25 +02:00
fix: multiple small bugs from previous commit
This commit is contained in:
1 parent
3fb2a32b83
commit
d5b5d07e64
3 files changed
+22
-12
No files matched your search
@@ -112,7 +112,7 @@ char *createNewNote(char dirToVault[PATH_MAX], char *vaultFromDir, int bypass, c
|
||||
snprintf(fileFullPath, PATH_MAX, "%s/%s/%s/", dirToVault, vaultFromDir, fileName);
|
||||
struct stat st = {0};
|
||||
if (stat(fileFullPath, &st) == -1) {
|
||||
error(!mkdir(fileFullPath, 0744), "program", "mkdir failed");
|
||||
error(mkdir(fileFullPath, 0744), "program", "mkdir failed");
|
||||
} else {
|
||||
error(1, "program", "%s could not be created", fileFullPath);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user