nixpkgs/pkgs/by-name/cl/clamav/use-non-existent-file-with-proper-permissions.patch
2025-06-21 14:38:52 -04:00

14 lines
514 B
Diff

diff --git a/unit_tests/check_clamd.c b/unit_tests/check_clamd.c
index 2f526709a..df67c36ed 100644
--- a/unit_tests/check_clamd.c
+++ b/unit_tests/check_clamd.c
@@ -144,7 +144,7 @@ static void conn_teardown(void)
#define CLEANREPLY CLEANFILE ": OK"
#define UNKNOWN_REPLY "UNKNOWN COMMAND"
-#define NONEXISTENT PATHSEP "nonexistentfilename"
+#define NONEXISTENT PATHSEP "tmp" PATHSEP "nonexistentfilename"
#define NONEXISTENT_REPLY NONEXISTENT ": File path check failure: No such file or directory. ERROR"