diff options
author | Chris Wilson <chris+github@qwirx.com> | 2013-02-13 00:24:11 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2013-02-13 00:24:11 +0000 |
commit | 24edb39601fa14de8d8ba3308fd9ec5377c815b8 (patch) | |
tree | 25b9372a972babb827646ea4dc49b4230ba84d0c /test/bbackupd | |
parent | 488f4ecf0584768c300aab756d3900f57d5450c7 (diff) |
Fix compile error due to missing mode on open(O_CREAT).
Diffstat (limited to 'test/bbackupd')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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), |