Merge branch 'master' into tizen_2.1
authorJaeho Lee <jaeho81.lee@samsung.com>
Thu, 4 Apr 2013 02:34:53 +0000 (11:34 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Thu, 4 Apr 2013 02:35:09 +0000 (11:35 +0900)
added euid check

Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
packaging/aul.spec
src/pkginfo.c

index e662ac8..9bc031a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       aul
 Summary:    App utility library
-Version:    0.0.261
+Version:    0.0.262
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index da61de4..8118616 100755 (executable)
@@ -120,7 +120,7 @@ SLPAPI int aul_app_get_appid_bypid(int pid, char *appid, int len)
        app_pkt_t *pkt = NULL;
        int pgid;
 
-       if(pid == getpid() || getuid()==0) {
+       if(pid == getpid() || getuid()==0 || geteuid()==0) {
                if (__get_pkgname_bypid(pid, appid, len) == 0) {
                        _D("appid for %d is %s", pid, appid);
                        return AUL_R_OK;