From 1ff67a5cdcbc8daa7f6816d55fbddc30e9554bd4 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 29 Jan 2005 01:16:32 +0000
Subject: [PATCH] Set umask to 077 since syncterm.lst will contain password
 info.

---
 src/syncterm/syncterm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/syncterm/syncterm.c b/src/syncterm/syncterm.c
index 95537a2eba..a57d10cd42 100644
--- a/src/syncterm/syncterm.c
+++ b/src/syncterm/syncterm.c
@@ -1,3 +1,5 @@
+#include <sys/stat.h>
+
 #include <gen_defs.h>
 #include <stdlib.h>
 #include <ciolib.h>
@@ -131,6 +133,10 @@ int main(int argc, char **argv)
 	FULLPATH(path,drive,sizeof(path));
 	atexit(uifcbail);
 
+#ifdef __unix__
+	umask(077);
+#endif
+
 	/* User BBS list path */
 	home=getenv("HOME");
 	if(home==NULL)
-- 
GitLab