"data blob, " \
"PRIMARY KEY(key)) "
-#define BXT_DEFAULT_USER tzplatform_getuid(TZ_SYS_DEFAULT_USER)
-
static GHashTable *dbs;
static bool is_db_corrupted;
return BUXTON_ERROR_IO_ERROR;
}
- if (info.st_uid != BXT_DEFAULT_USER) {
- bxt_err("invalid owner [%d : %d]", BXT_DEFAULT_USER, info.st_uid);
+ if (info.st_uid != getuid()) {
+ bxt_err("invalid owner [%d : %d]", getuid(), info.st_uid);
return BUXTON_ERROR_IO_ERROR;
}
}
if (uid == 0)
- uid = BXT_DEFAULT_USER;
+ uid = getuid();
buxton_layer_set_uid(_layer, uid);
buxton_layer_set_type(_layer, type);
r = subsession_get_current_user(BXT_DEFAULT_USER, user);
if (r == TIZEN_ERROR_NONE)
layer->user = strdup(user);
- bxt_err("get_current_user: %s[uid:%d]", layer->user, layer->uid);
+ bxt_err("get_current_user: %s", layer->user);
}
r = func(layer, argc > 3 ? argv[3] : NULL,
}
tmp_layer->refcnt = 1;
- tmp_layer->uid = BXT_DEFAULT_USER;
+ tmp_layer->uid = getuid();
tmp_layer->type = LAYER_ATTRIBUTE_RW;
*layer = tmp_layer;
VERSION ${VERSION}
SOVERSION ${MAJVER}
)
-TARGET_LINK_LIBRARIES(${TARGET} ${PKGS_LDFLAGS} ${TZPLATFORM_CONFIG_DEPS_LDFLAGS} pthread atomic )
+TARGET_LINK_LIBRARIES(${TARGET} ${PKGS_LDFLAGS} pthread atomic)
INSTALL(TARGETS ${TARGET} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
# buxton2.pc