add permission changing for making directory
authorYong Yeon Kim <yy9875.kim@samsung.com>
Tue, 16 Apr 2013 07:05:16 +0000 (16:05 +0900)
committerYong Yeon Kim <yy9875.kim@samsung.com>
Tue, 16 Apr 2013 07:05:16 +0000 (16:05 +0900)
src/common/media-common-external-storage.c

index a28163e..4b0ebed 100755 (executable)
@@ -59,6 +59,10 @@ ms_make_default_path_mmc(void)
                        if (ret < 0) {
                                MS_DBG("make fail");
                        }
+                       /*this fuction for emulator*/
+                       /*at the first time, the directroies are made permission 755*/
+                       chmod(default_path[i], 0777);
+                       chown(default_path[i], 5000, 5000);
                } else {
                        closedir(dp);
                }