From f38e6e15f4b8544e3d64cdbc4805ef8308f1088d Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 9 Dec 2022 15:12:50 +0100 Subject: [PATCH] fixed 'ignoring return value' problem in symlink creation see 215121f209f3e09a5ad3ce4fc5ed052d9d66708d --- src/logger/lib/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/lib/logger.c b/src/logger/lib/logger.c index b2b1dbd..9862b9e 100644 --- a/src/logger/lib/logger.c +++ b/src/logger/lib/logger.c @@ -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: