[Issue#] N/A
[Bug] Segfult in dir_set_smack_r function.
[Cause] Wrong DLOG agrument - printing enum like a string.
[Solution] Fix print format.
[Verification] Build libprivilege with WRT_SMACK_ENABLE and run libprivilege-control tests.
Change-Id: I7be2f912537a4585afdcf9cc088eea340dfb0c74
goto out;
}
- C_LOGD("smack_lsetlabel (label: %s (type: %s), path: %s)", label, type, ftsent->fts_path);
+ C_LOGD("smack_lsetlabel (label: %s (type: %d), path: %s)", label, type, ftsent->fts_path);
if (ftsent->fts_statp->st_mode & S_IFMT & type_mask)
if (smack_lsetlabel(ftsent->fts_path, label, type) != 0) {
C_LOGE("smack_lsetlabel failed");