]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/run_cmd: use mkstemp instead of mkstemps
authorSage Weil <sage.weil@dreamhost.com>
Sun, 13 Nov 2011 22:16:52 +0000 (14:16 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 13 Nov 2011 22:16:52 +0000 (14:16 -0800)
my box didn't have mkstemps

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/test/run_cmd.cc

index f562e93ccc215c7f8130b5d8f083273058c80dd9..ada624e8b5a9d070dde3af9113ad6bf8e1b7b79d 100644 (file)
@@ -10,7 +10,7 @@ TEST(RunCommand, StringSimple)
 {
   char temp_file_name[] = "run_cmd_temp_file_XXXXXX";
 
-  int fd = ::mkstemps(temp_file_name, 0);
+  int fd = ::mkstemp(temp_file_name);
   ASSERT_GE(fd, 0);
   ::close(fd);