fix uid/gid wording 73/200473/3
authorAdrian Szyndela <adrian.s@samsung.com>
Mon, 25 Feb 2019 13:04:45 +0000 (14:04 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 7 Mar 2019 07:37:25 +0000 (07:37 +0000)
mapGroups are maps that tie uid with vector of gids. This fixes
misleading wording.

Change-Id: I982e8b474a25da189e16b8871f023e9110787b64

src/internal/naive_policy_db.cpp
src/internal/naive_policy_db.hpp

index 377d4da..7ce3b4e 100644 (file)
@@ -338,7 +338,7 @@ void NaivePolicyDb::printContent() const
 
                for (const auto& i : mapGroup) {
                        size += i.second.capacity() * sizeof(gid_t);
-                       std:: cerr << "gid: " << i.first << " |";
+                       std::cerr << "uid: " << i.first << " | gids: ";
                        for (auto j : i.second)
                                std::cerr << " " << j << ",";
                        std::cerr << std::endl;
index 877d4d3..7db549e 100644 (file)
@@ -38,7 +38,7 @@ namespace ldp_xml_parser
 
                std::unique_ptr<NaivePolicyDbImpl> pimpl;
 
-               mutable std::map<gid_t, VGid> mapGroups[MatchItemTypes::count];
+               mutable std::map<uid_t, VGid> mapGroups[MatchItemTypes::count];
                /* A mutex for mapGroups */
                mutable pthread_mutex_t mutexGroup = PTHREAD_MUTEX_INITIALIZER;