From dc3f09855cd75d543672ccc24064b49209ab79b6 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 10 Jun 2015 12:54:57 +0300 Subject: [PATCH] Coverity 1304849 --- .../uavcan_posix/dynamic_node_id_server/file_storage_backend.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libuavcan_drivers/posix/include/uavcan_posix/dynamic_node_id_server/file_storage_backend.hpp b/libuavcan_drivers/posix/include/uavcan_posix/dynamic_node_id_server/file_storage_backend.hpp index 76c515a8cb..7374c3cc0d 100644 --- a/libuavcan_drivers/posix/include/uavcan_posix/dynamic_node_id_server/file_storage_backend.hpp +++ b/libuavcan_drivers/posix/include/uavcan_posix/dynamic_node_id_server/file_storage_backend.hpp @@ -114,6 +114,7 @@ public: struct stat sb; if (stat(base_path.c_str(), &sb) != 0 || !S_ISDIR(sb.st_mode)) { + // coverity[toctou] rv = mkdir(base_path.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); } if (rv >= 0 )