diff --git a/set-TMOUT-300-and-set-default-umask.patch b/set-TMOUT-300-and-set-default-umask.patch new file mode 100644 index 0000000000000000000000000000000000000000..f9b871c0b59041b8ada990084c2f3c9b06d299d6 --- /dev/null +++ b/set-TMOUT-300-and-set-default-umask.patch @@ -0,0 +1,32 @@ +From ab59fb7d2aff6e29d58cbdc213a974c696bdedb4 Mon Sep 17 00:00:00 2001 +From: hongjinghao +Date: Thu, 8 Jun 2023 11:15:46 +0800 +Subject: [PATCH] set TMOUT=300 and set default umask + +--- + bashrc | 2 ++ + profile | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/bashrc b/bashrc +index d462ac7..444ef78 100644 +--- a/bashrc ++++ b/bashrc +@@ -94,3 +94,5 @@ if [ -z "$BASHRCSOURCED" ]; then + + fi + # vim:ts=4:sw=4 ++ ++umask 0077 +diff --git a/profile b/profile +index 542add4..8f086af 100644 +--- a/profile ++++ b/profile +@@ -80,3 +80,4 @@ then + . /etc/bashrc + fi + ++export TMOUT=300 +-- +2.33.0 + diff --git a/setup.spec b/setup.spec index 5d8aeefb7482e99f66d285c553d819a90a8aece6..c40cdaaff9e3236f50411a21894ae4cc4623f25a 100644 --- a/setup.spec +++ b/setup.spec @@ -1,13 +1,14 @@ Summary: A set of system configuration and setup files Name: setup Version: 2.13.9.1 -Release: 1 +Release: 2 License: Public Domain Group: System Environment/Base URL: https://pagure.io/setup/ Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2 Patch0: support-filesystems-xfs.patch Patch1: source-cshlocal-when-login.patch +Patch2: set-TMOUT-300-and-set-default-umask.patch BuildArch: noarch BuildRequires: systemd BuildRequires: bash tcsh perl-interpreter @@ -117,6 +118,9 @@ end %{_tmpfilesdir}/%{name}.conf %changelog +* Thu Jun 8 2023 hongjinghao - 2.13.9.1-2 +- set TMOUT=300 and set default umask + * Tue Nov 30 2021 wangjie - 2.13.9.1-1 - Type:enhancement - ID:NA