Release 0.7.8.1 85/319485/3 accepted/tizen/unified/20250214.120456 accepted/tizen/unified/x/20250218.043808
authorMichal Bloch <m.bloch@samsung.com>
Wed, 12 Feb 2025 11:37:26 +0000 (12:37 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 12 Feb 2025 12:03:32 +0000 (13:03 +0100)
Don't use bleeding edge technologies like C++20
since some known downstream forks use g++9.2.

Change-Id: I020817bb35307c92d7f1a3d13ca529279b33e986
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/service/src/fs_helpers.cpp

index e51fa4eec533251cbf4434e6999099db363b90ba..8658a7d6986d5c51e2b9c0ce1da01cb46ab8c041 100644 (file)
@@ -187,18 +187,17 @@ void add_user_subsession(const int session_uid, const std::string_view subsessio
 
                int users_gid = OS::get_gid_from_name("users");
 
-               using enum fs::perms;
-               static constexpr fs::perms users_perms        = owner_all
-                                                             | group_read  | group_exec
-                                                             | others_read | others_exec;
-
-               static constexpr fs::perms system_share_perms = owner_all
-                                                             | group_all
-                                                             | others_read | others_exec
-                                                             | set_gid;
-
-               static constexpr fs::perms apps_rw_dir_perms  = owner_all
-                                                             | group_read | group_exec;
+               static constexpr fs::perms users_perms        = fs::perms::owner_all
+                                                             | fs::perms::group_read  | fs::perms::group_exec
+                                                             | fs::perms::others_read | fs::perms::others_exec;
+
+               static constexpr fs::perms system_share_perms = fs::perms::owner_all
+                                                             | fs::perms::group_all
+                                                             | fs::perms::others_read | fs::perms::others_exec
+                                                             | fs::perms::set_gid;
+
+               static constexpr fs::perms apps_rw_dir_perms  = fs::perms::owner_all
+                                                             | fs::perms::group_read | fs::perms::group_exec;
 
                for (auto const& entry : fs::recursive_directory_iterator(source_path)) {
                        const auto s_path = entry.path();