#include "pkgmgrinfo_debug.h"
#include "pkgmgrinfo_private.h"
#include "pkgmgr_parser.h"
-#include "pkgmgr_parser_internal.h"
#define QUERY_CREATE_TABLE_PACKAGE_CERT_INDEX_INFO \
"CREATE TABLE IF NOT EXISTS package_cert_index_info( " \
if (readonly)
path = tzplatform_mkpath(TZ_SYS_RO_ICONS, "/");
- else
- path = tzplatform_mkpath(TZ_SYS_RW_ICONS, "/");
/* just allow certain users to create the icon directory if needed. */
- if (uid_caller == ROOT_UID || uid_caller == APPFW_UID || uid_caller == uid)
+ if (path && (uid_caller == ROOT_UID ||
+ uid_caller == APPFW_UID || uid_caller == uid))
_mkdir_for_user(path, uid, gid);
return path;
tzplatform_reset_user();
}
- // just allow certain users to create the dbspace directory if needed.
+ /* just allow certain users to create the dbspace directory if needed. */
if (uid_caller == ROOT_UID || uid_caller == APPFW_UID || uid_caller == uid)
_mkdir_for_user(db_path, uid, gid);
tzplatform_reset_user();
}
- // just allow certain users to create the dbspace directory if needed.
+ /* just allow certain users to create the dbspace directory if needed. */
if (uid_caller == ROOT_UID || uid_caller == APPFW_UID || uid_caller == uid)
_mkdir_for_user(db_path, uid, gid);