Fix bug in group handling 94/36094/1 accepted/tizen_3.0.2015.q1_common tizen_3.0.2015.q1_common accepted/tizen/3.0.2015.q1/common/20150317.132303 accepted/tizen/common/20150316.134731 accepted/tizen/mobile/20150326.005116 accepted/tizen/tv/20150324.014501 accepted/tizen/wearable/20150323.005711 submit/tizen_3.0.2015.q1_common/20150316.105130 submit/tizen_3.0.2015.q1_common/20150316.112029 submit/tizen_common/20150316.105034 submit/tizen_common/20150316.111955 submit/tizen_mobile/20150325.000000 submit/tizen_tv/20150320.000001 submit/tizen_wearable/20150320.000000
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 2 Mar 2015 09:24:29 +0000 (10:24 +0100)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 2 Mar 2015 09:24:29 +0000 (10:24 +0100)
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,
the user of the usb-daemon. It is valid because the mode
set using chmod is 0777.

Change-Id: I36a040dba8c6e0045e7dc7e8fdf4188f25de1091
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
src/um_common.c

index e5beb48..e5731ef 100644 (file)
@@ -45,7 +45,7 @@
 #define LAUNCH_RETRY 10
 
 #define USER  tzplatform_getuid(TZ_USER_NAME)
-#define GROUP tzplatform_getgid(TZ_SYS_USER_GROUP)
+#define GROUP tzplatform_getgid(TZ_USER_NAME)
 
 int check_usbclient_connection()
 {