v0.27.3
Robin Mills 12 years ago
parent 3f5e82bcc5
commit cc8953be16

@ -292,13 +292,15 @@ namespace Exiv2 {
if (::getxattr(src.p_->path_.c_str(), name, value, sizeof(value), 0, 0) != valueSize) { if (::getxattr(src.p_->path_.c_str(), name, value, sizeof(value), 0, 0) != valueSize) {
throw Error(2, src.p_->path_, strError(), "getxattr"); throw Error(2, src.p_->path_, strError(), "getxattr");
} }
// #906. Mountain Lion 'sandbox' terminates the app when we call setxattr
#ifndef __APPLE__
#ifdef DEBUG #ifdef DEBUG
EXV_DEBUG << "Copying xattr \"" << name << "\" with value size " << valueSize << "\n"; EXV_DEBUG << "Copying xattr \"" << name << "\" with value size " << valueSize << "\n";
#endif #endif
if (::setxattr(path_.c_str(), name, value, valueSize, 0, 0) != 0) { if (::setxattr(path_.c_str(), name, value, valueSize, 0, 0) != 0) {
throw Error(2, path_, strError(), "setxattr"); throw Error(2, path_, strError(), "setxattr");
} }
} #endif
#else #else
// No xattr support for this platform. // No xattr support for this platform.
#endif #endif

Loading…
Cancel
Save