The function tzplatform_getgid expects the id of a variable
matching a user name, not a group name.
The group set here will now be the group of the current user.
Change-Id: I6feabd899c95fcdf4824d0b4fd4920b7fd0dffef
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
if (ret != 0) {
MS_DBG_ERR("chmod failed [%s]", strerror(errno));
}
- ret = chown(default_path[i], tzplatform_getuid(TZ_USER_NAME), tzplatform_getgid(TZ_SYS_USER_GROUP));
+ ret = chown(default_path[i], tzplatform_getuid(TZ_USER_NAME), tzplatform_getgid(TZ_USER_NAME));
if (ret != 0) {
MS_DBG_ERR("chown failed [%s]", strerror(errno));
}