From ae6c051387d867e4569cd13ab98ea9670352ef5e Mon Sep 17 00:00:00 2001 From: hongjinghao Date: Thu, 8 Jun 2023 10:37:03 +0800 Subject: [PATCH] set TMOUT=300 and set default umask --- set-TMOUT-300-and-set-default-umask.patch | 32 +++++++++++++++++++++++ setup.spec | 6 ++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 set-TMOUT-300-and-set-default-umask.patch 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 0000000..b3eb44e --- /dev/null +++ b/set-TMOUT-300-and-set-default-umask.patch @@ -0,0 +1,32 @@ +From 6a99b637893db19b8ec8279ee51ae9887ccb2a98 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Thu, 8 Jun 2023 11:20:24 +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 a4021d9..d7fec78 100644 +--- a/bashrc ++++ b/bashrc +@@ -86,3 +86,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 f0d2644..56593a8 100644 --- a/setup.spec +++ b/setup.spec @@ -1,13 +1,14 @@ Summary: A set of system configuration and setup files Name: setup Version: 2.14.3 -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 @@ -119,6 +120,9 @@ end %{_tmpfilesdir}/%{name}.conf %changelog +* Thu Jun 8 2023 hongjinghao - 2.14.3-2 +- set TMOUT=300 and set default umask + * Sun Jan 29 2023 hongjinghao - 2.14.3-1 - update to 2.14.3 -- Gitee