From d89710e375b57f0da163fd9fd7bcdae60e9a267b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 11 Jun 2019 10:42:58 +0200 Subject: [PATCH] Reset existing mask (fix warning) --- src/algorithms/PVT/libs/kml_printer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/algorithms/PVT/libs/kml_printer.cc b/src/algorithms/PVT/libs/kml_printer.cc index 2435f7e57..335fc0fee 100644 --- a/src/algorithms/PVT/libs/kml_printer.cc +++ b/src/algorithms/PVT/libs/kml_printer.cc @@ -110,6 +110,7 @@ Kml_Printer::Kml_Printer(const std::string& base_path) { close(fd); } + umask(mask); fs::path tmp_filename = fs::path(tmp_filename_); tmp_file_str = tmp_filename.string();