Change-Id: I861137d16ac40792a542247dc412aad74ad26045
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
return STORAGE_ERROR_INVALID_PARAMETER;
}
return STORAGE_ERROR_INVALID_PARAMETER;
}
- if (getuid() < USER_UID_START)
+ if (getuid() <= USER_UID_START)
user = false;
DD_LIST_FOREACH(st_int_head, elem, st) {
user = false;
DD_LIST_FOREACH(st_int_head, elem, st) {
return STORAGE_ERROR_INVALID_PARAMETER;
}
return STORAGE_ERROR_INVALID_PARAMETER;
}
- if (getuid() < USER_UID_START)
+ if (getuid() <= USER_UID_START)
user = false;
/* internal storage */
user = false;
/* internal storage */
if (st->storage_id != storage_id)
continue;
if (!user) {
if (st->storage_id != storage_id)
continue;
if (!user) {
- _E("Only Tizen applications and user session daemons can use \
- storage_get_root_directory(id , ...)");
+ _E("Only Tizen applications and user session daemons can use\
+ storage_get_root_directory(INTERNAL_STORAGE_ID, ...)");
return STORAGE_ERROR_INVALID_PARAMETER;
}
return STORAGE_ERROR_INVALID_PARAMETER;
}
- if (getuid() < USER_UID_START)
+ if (getuid() <= USER_UID_START)
user = false;
if (found && st) {
if (!user) {
user = false;
if (found && st) {
if (!user) {
- _E("Only Tizen applications and user session daemons can use \
- storage_get_directory(id, ...)");
+ _E("Only Tizen applications and user session daemons can use\
+ storage_get_directory(INTERNAL_STORAGE_ID, ...)");
return STORAGE_ERROR_INVALID_PARAMETER;
}
return STORAGE_ERROR_INVALID_PARAMETER;
}