From 8844150d7f2ba390d0f0c24473392833acc25556 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 22 Dec 2021 01:28:41 +0000 Subject: [PATCH] dtaction:: Resolve uninitialized warnings, use a set access more for the SULog file --- cde/programs/dtaction/Main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtaction/Main.c b/cde/programs/dtaction/Main.c index 222735725..74b767f78 100644 --- a/cde/programs/dtaction/Main.c +++ b/cde/programs/dtaction/Main.c @@ -622,7 +622,7 @@ AddSuLog( * take away write access from SULog */ - if(chmod (SULog, (int) (st.st_mode & 07777) & ~0222) == -1) { + if(chmod (SULog, 0400) == -1) { fprintf(stderr, "Error on chmod of '%s', %s\n", SULog, strerror(errno)); }