Allow pkginfo for root user 98/42298/2 accepted/tizen/mobile/20150626.064823 accepted/tizen/tv/20150626.064900 accepted/tizen/wearable/20150626.064940 submit/tizen/20150626.014106
authorSangyoon Jang <s89.jang@samsung.com>
Thu, 25 Jun 2015 10:28:21 +0000 (19:28 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Thu, 25 Jun 2015 10:29:24 +0000 (19:29 +0900)
Change-Id: I22240ee608cb2197734ba21d50d1853256553b04
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
tool/pkg_info.c

index 475b5e2..ef51682 100644 (file)
@@ -37,8 +37,6 @@
 #include "pkgmgr-dbinfo.h"
 #include "pkgmgr_installer.h"
 
-#define OWNER_ROOT 0
-
 static void __print_usage();
 static int __get_pkg_info(char *pkgid, uid_t uid);
 static int __get_app_info(char *appid);
@@ -2183,11 +2181,6 @@ int main(int argc, char *argv[])
                printf("Locale is %s\n", locale);
 
 
-       if(getuid() == OWNER_ROOT) {
-               printf("User is Root! : Only tizenglobalapp or regular user are allowed\n");
-               return -1;
-       }
-       
        free(locale);
        locale = NULL;
        if (argc == 2) {