diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2017-06-09 09:55:39 +0000 | 
|---|---|---|
| committer | Bileto Bot <ci-train-bot@canonical.com> | 2017-06-09 09:55:39 +0000 | 
| commit | aa05f37aff43686bbd29a6708e87da1732693f9a (patch) | |
| tree | 538f8c5c538a95b269726e90a970ca80ac54b542 | |
| parent | 35d6baa94e14bab87c687296e0ddc004a3378924 (diff) | |
| parent | 2bfdc1a8972f7dc7e198ff08cd33595258481cb3 (diff) | |
Use g_mkdir_with_parents instead of mkdir.
(bzr r4238)
| -rw-r--r-- | unity-shared/ThumbnailGenerator.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/unity-shared/ThumbnailGenerator.cpp b/unity-shared/ThumbnailGenerator.cpp index 9eef47bab..c3f596a37 100644 --- a/unity-shared/ThumbnailGenerator.cpp +++ b/unity-shared/ThumbnailGenerator.cpp @@ -492,7 +492,7 @@ std::string Thumbnail::Generate(std::string& error_hint)  return "";  } - mkdir(get_preview_dir().c_str(), S_IRWXU); + g_mkdir_with_parents(get_preview_dir().c_str(), S_IRWXU);  std::string file_type = g_file_info_get_attribute_string(file_info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE); | 
