diff options
author | Yong Yeon Kim <yy9875.kim@samsung.com> | 2013-04-16 16:05:16 +0900 |
---|---|---|
committer | Yong Yeon Kim <yy9875.kim@samsung.com> | 2013-04-16 16:05:16 +0900 |
commit | bf94584f6cacfe638661022e5745544b233a3f75 (patch) | |
tree | cdc1aeff1a2eec34070f0b3a85a6a69d79ec2891 | |
parent | 3b25b413d9af28155ba9440797c75ee62965d06b (diff) | |
download | media-server-bf94584f6cacfe638661022e5745544b233a3f75.tar.gz media-server-bf94584f6cacfe638661022e5745544b233a3f75.tar.bz2 media-server-bf94584f6cacfe638661022e5745544b233a3f75.zip |
add permission changing for making directory
-rwxr-xr-x | src/common/media-common-external-storage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/media-common-external-storage.c b/src/common/media-common-external-storage.c index a28163e..4b0ebed 100755 --- a/src/common/media-common-external-storage.c +++ b/src/common/media-common-external-storage.c @@ -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); } |