From 8796676d527ab66900f21ea345bcea15bec74f28 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Mon, 18 Aug 2025 08:28:13 +0000 Subject: Better not use the old octal notation (even though it still works) --- generic/tclIOUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index a488537..124485c 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -3309,14 +3309,14 @@ Tcl_LoadFile( /* * It might be necessary on some systems to set the appropriate permissions * on the file. On Unix we could loop over the file attributes and set any - * that are called "-permissions" to 0700, but just do it directly instead: + * that are called "-permissions" to 0o700, but just do it directly instead: */ { int index; Tcl_Obj *perm; - TclNewLiteralStringObj(perm, "0700"); + TclNewLiteralStringObj(perm, "0o700"); Tcl_IncrRefCount(perm); if (TclFSFileAttrIndex(copyToPtr, "-permissions", &index) == TCL_OK) { Tcl_FSFileAttrsSet(NULL, index, copyToPtr, perm); -- cgit v0.12