fixed 'ignoring return value' problem in symlink creation

see 215121f209f3e09a5ad3ce4fc5ed052d9d66708d
This commit is contained in:
Václav Šmejkal 2022-12-09 15:12:50 +01:00
parent cd6600a83f
commit f38e6e15f4
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -80,7 +80,7 @@ logFile initLogger(char *directoryPath)
strcpy(latestFilePath, filePath);
if (access(latestBuffer, R_OK) == 0) { unlink(latestBuffer); }
symlink(latestFilePath + (strlen(WRITE_DIR) + 1), latestBuffer); //CREATE
(void) (symlink(latestFilePath + (strlen(WRITE_DIR) + 1), latestBuffer) + 1); //TODO: Try to create some function for processing exit value //CREATE
deallocation: