change GLOBAL_USER to tzplatform_getuid
authorSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Tue, 2 Sep 2014 16:19:16 +0000 (18:19 +0200)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Fri, 5 Sep 2014 10:14:00 +0000 (12:14 +0200)
Change-Id: I104aacd93c93d27ab0ac2cd2489fe8708bf3a4a4
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
parser/pkgmgr_parser.c
parser/pkgmgr_parser.h

index 1042f36..4c0b3c9 100755 (executable)
@@ -63,7 +63,7 @@
 #define PKG_TAG_LEN_MAX 128
 #define OWNER_ROOT 0
 #define BUFSIZE 4096
-#define GLOBAL_USER 0
+#define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
 
 /* operation_type */
 typedef enum {
index 789e574..3667deb 100755 (executable)
@@ -57,7 +57,7 @@ extern "C" {
 #define PKG_STRING_LEN_MAX 1024
 
 #define PKGMGR_PARSER_EMPTY_STR                ""
-#define GLOBAL_USER    0 //#define     tzplatform_getenv(TZ_GLOBAL) //TODO
+#define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
 
 
 /**