diff options
Diffstat (limited to 'notification-ex')
-rw-r--r-- | notification-ex/shared_file.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/notification-ex/shared_file.cc b/notification-ex/shared_file.cc index eaef907..99f2c44 100644 --- a/notification-ex/shared_file.cc +++ b/notification-ex/shared_file.cc @@ -190,9 +190,11 @@ bool SharedFile::IsPrivatePath(string path) const { return false; } + errno = 0; if (smack_new_label_from_path(path.c_str(), XATTR_NAME_SMACK, 1, &smack_label) <= 0) { - LOGE("smack_new_label_from_path failed"); + LOGE("smack_new_label_from_path failed : %d [%s][%s]", + errno, strerror(errno), path.c_str()); return false; } |