Skip to content

Commit 294f7ec

Browse files
committed
Replaced hardcoded directory create mode with DEFAULTMODE
Signed-off-by: Lars Erik Wik <[email protected]>
1 parent b8a71df commit 294f7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf-agent/verify_files_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ static PromiseResult SourceSearchAndCopy(EvalContext *ctx, const char *from, cha
10191019

10201020
if ((!attr->copy.collapse) && (stat(newto, &dsb) == -1))
10211021
{
1022-
if (mkdir(changes_newto, 0700) == -1)
1022+
if (mkdir(changes_newto, DEFAULTMODE) == -1)
10231023
{
10241024
RecordInterruption(ctx, pp, attr, "Can't make directory '%s'. (mkdir: %s)",
10251025
newto, GetErrorStr());

0 commit comments

Comments
 (0)