Index: checkinstall-1.6.2/installwatch/test-installwatch.c =================================================================== --- checkinstall-1.6.2/installwatch/test-installwatch.c +++ checkinstall-1.6.2/installwatch/test-installwatch.c 2022-03-15 12:00:09.696952689 -0700 @@ -164,7 +164,7 @@ void test_open(void) { int fd; - fd = open(TESTFILE, O_CREAT, O_RDWR, 0700); + fd = open(TESTFILE, O_CREAT | O_RDWR, 0700); close(fd); unlink(TESTFILE); }