From: František Dvořák Date: Thu, 17 Oct 2013 17:48:00 +0000 (+0200) Subject: No problem with bool type in Extensible class anymore. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=908e6661824ad7c9cc8e7aeeae8115a00108ebc7;p=dmlite-plugins-vfs.git No problem with bool type in Extensible class anymore. --- diff --git a/src/VfsNs.cpp b/src/VfsNs.cpp index da201f6..9ffff6d 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -542,9 +542,14 @@ void VfsCatalog::updateExtendedAttributes(const std::string& path, for (it = newXattrs.begin(); it != newXattrs.end(); it++) { key = it->first; - // XXX: bug in Extensible? for bool type "true" not mapped to true - if (it->second.type() == typeid(bool)) value = Extensible::anyToBoolean(it->second) ? std::string("1") : std::string("0"); - else value = Extensible::anyToString(it->second); + + // used to be bug in Extensible? bool type "true" not mapped to true + //if (it->second.type() == typeid(bool)) value = Extensible::anyToBoolean(it->second) ? std::string("1") : std::string("0"); + //else value = Extensible::anyToString(it->second); + + // OK, it's working now :-) + value = Extensible::anyToString(it->second); + if (oldXattrs.hasField(key)) { oldvalue = Extensible::anyToString(oldXattrs[key]); if (oldvalue != value) {