Fix syscall error(change linux_dirent) 10/85010/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 23 Aug 2016 08:45:00 +0000 (17:45 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 23 Aug 2016 08:45:00 +0000 (17:45 +0900)
Change-Id: Ieffae42b6a9fa349489ce18ddfc1cee11ab9a9b8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/media-server.spec
src/common/media-common-db-svc.c
src/scanner-v2/media-scanner-scan-v2.c

index 67577f4..279f61a 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.2.104
+Version:    0.2.107
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0
index b40ba79..e0ed540 100755 (executable)
@@ -1113,7 +1113,7 @@ int ms_genarate_uuid(void **handle, char **uuid)
        int ret;
        char * err_msg = NULL;
 
-       ret = ((GET_UUID)func_array[lib_index][eGET_UUID])(handle[lib_index], uuid, &err_msg); /*dlopen*/
+       ret = ((GET_UUID)func_array[lib_index][eGET_UUID])(NULL, uuid, &err_msg); /*dlopen*/
        if (ret != 0) {
                MS_DBG_ERR("error : %s [%s]", g_array_index(so_array, char*, lib_index), err_msg);
                MS_SAFE_FREE(err_msg);
index f814ad5..92d7a47 100755 (executable)
@@ -462,10 +462,11 @@ static void __msc_trim_dir_path(char *dir_path)
 }
 
 struct linux_dirent {
-       int           d_ino;
-       long           d_off;
-       unsigned short d_reclen;
-       char           d_name[];
+       ino64_t                 d_ino;   /* 64-bit inode number */
+       off64_t                 d_off;   /* 64-bit offset to next structure */
+       unsigned short  d_reclen; /* Size of this dirent */
+       unsigned char   d_type;  /* File type */
+       char                            d_name[]; /* Filename (null-terminated) */
 };
 
 #define BUF_SIZE 1024