add new condition for checking user ID 63/103963/1
authorYong Yeon Kim <yy9875.kim@samsung.com>
Mon, 12 Dec 2016 02:23:26 +0000 (11:23 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Mon, 12 Dec 2016 02:34:34 +0000 (18:34 -0800)
Change-Id: I24f9465644b946079d9f2a769fc5c0142e02d00b
(cherry picked from commit 3a6dcecea9fd4513ae731a43199c53dc8d149a94)

src/common/media-common-system.c

index 454c306..a1b7a81 100755 (executable)
@@ -494,6 +494,14 @@ int ms_sys_get_uid(uid_t *uid)
        if (users > 0) {
                *uid = list[0];
                MS_SAFE_FREE(list);
+#ifdef _USE_SENIOR_MODE
+               /*in tv side, sometimes the uid is not valid.
+               so for debbuging add below code temporary */
+               if (*uid != MEDIA_DEFAULT_UID) {
+                       MS_DBG_ERR("NOT VALID UID[%d]", *uid);
+                       return MS_MEDIA_ERR_INTERNAL;
+               }
+#endif
        } else {
                MS_DBG_ERR("No login user!.");
                MS_SAFE_FREE(list);