From 49f7a4e1d6bffa87a37802e63fcb69a1c3594659 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 14 Oct 2013 22:21:43 +0200 Subject: [PATCH] No problem with bool type in Extensible class anymore. --- src/VfsNs.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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) { -- 1.8.2.3