From 24edb39601fa14de8d8ba3308fd9ec5377c815b8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 13 Feb 2013 00:24:11 +0000 Subject: Fix compile error due to missing mode on open(O_CREAT). --- test/bbackupd/testbbackupd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/bbackupd') diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 3f3be35d..6cd8f27d 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -1201,7 +1201,7 @@ int test_bbackupd() std::string touchfile = "testfiles/TestDir1/spacetest/d1/touch-me"; - fd = open(touchfile.c_str(), O_CREAT | O_WRONLY); + fd = open(touchfile.c_str(), O_CREAT | O_WRONLY, 0700); TEST_THAT(fd > 0); // write again, to update the file's timestamp TEST_EQUAL_LINE(sizeof(buffer), -- cgit v1.2.3