From 500f5fa8767693ef3918dd3aadfa8892f9ae98f2 Mon Sep 17 00:00:00 2001 From: yanhui Date: Wed, 4 Jun 2025 09:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=9D=83=E9=99=90=E6=9C=80?= =?UTF-8?q?=E5=B0=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yanhui Change-Id: I80f8e840ace02bfe1ea142e81357e10b17f3cbdd --- .../distributeddataservice/framework/utils/corrupt_reporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/distributeddataservice/framework/utils/corrupt_reporter.cpp b/services/distributeddataservice/framework/utils/corrupt_reporter.cpp index 405e29913..c2ec47a5d 100644 --- a/services/distributeddataservice/framework/utils/corrupt_reporter.cpp +++ b/services/distributeddataservice/framework/utils/corrupt_reporter.cpp @@ -35,7 +35,7 @@ bool CorruptReporter::CreateCorruptedFlag(const std::string &path, const std::st if (access(flagFileName.c_str(), F_OK) == 0) { return true; } - int fd = creat(flagFileName.c_str(), S_IRWXU | S_IRWXG); + int fd = creat(flagFileName.c_str(), S_IRUSR | S_IWUSR); if (fd == -1) { ZLOGW("Create corrupted flag fail, flagFileName:%{public}s, errno:%{public}d", Anonymous::Change(flagFileName).c_str(), errno); -- Gitee