diff options
author | Jusung Son <jusung07.son@samsung.com> | 2020-09-28 11:26:11 +0900 |
---|---|---|
committer | Jusung Son <jusung07.son@samsung.com> | 2020-09-28 11:26:11 +0900 |
commit | 31c4d4cc29e5a0e8ddeb0f7723607b608c48e4d5 (patch) | |
tree | 787c7e8d55e77c2ad6bc649356cd1205ac878798 /notification-ex | |
parent | 2f720dbf5b4a97cc8e484d9f94fe1b22c34229d9 (diff) | |
download | notification-31c4d4cc29e5a0e8ddeb0f7723607b608c48e4d5.tar.gz notification-31c4d4cc29e5a0e8ddeb0f7723607b608c48e4d5.tar.bz2 notification-31c4d4cc29e5a0e8ddeb0f7723607b608c48e4d5.zip |
Add error information for smack
Change-Id: I05016d7a1c06d427573e72d62f0f6b2cf7730816
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
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; } |