Bug-Tizen: PTREL-307
Change-Id: Id5cdb4af1e3e44e1d44092acf3154be370170e07
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
-SET(dependents "dlog vconf capi-base-common aul")
+SET(dependents "dlog vconf capi-base-common aul libtzplatform-config")
SET(pc_dependents "capi-base-common")
INCLUDE(FindPkgConfig)
SET(pc_dependents "capi-base-common")
INCLUDE(FindPkgConfig)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(libtzplatform-config)
+
%description
A USB accessory library in TIZEN C API.
%description
A USB accessory library in TIZEN C API.
#include "usb_accessory_private.h"
#include "usb_accessory_private.h"
+#include <tzplatform_config.h>
+
#define NUM_ACC_INFO_SEPARATOR 5
static void show_acc_info(struct usb_accessory_s *accessory)
#define NUM_ACC_INFO_SEPARATOR 5
static void show_acc_info(struct usb_accessory_s *accessory)
- ret = chown(ACC_SOCK_PATH, 5000, 5000);
+ ret = chown(ACC_SOCK_PATH,tzplatform_getuid(TZ_USER_NAME),tzplatform_getgid(TZ_SYS_USER_GROUP));
- USB_LOG("FAIL: chown(ACC_SOCK_PATH, 5000, 5000)");
+ USB_LOG("FAIL: chown(ACC_SOCK_PATH, tzplatform_getuid(TZ_USER_NAME),tzplatform_getgid(TZ_SYS_USER_GROUP))");
close(sock_local);
return -1;
}
close(sock_local);
return -1;
}