Coverity issue email
[platform/core/messaging/email-service.git] / email-core / email-storage / email-storage.c
index 90a9928..238b876 100755 (executable)
@@ -11841,7 +11841,8 @@ INTERNAL_FUNC int emstorage_create_dir(char *multi_user_name, int account_id, in
                        }
 
                        if (account_id == EML_FOLDER)
-                               chmod(buf, 0777);
+                               if (chmod(buf, 0777) !=0)
+                                       EM_DEBUG_EXCEPTION("chmod failed ");
                }
        }