diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-shells/bash/files/bash-5.0-history-append.patch | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'app-shells/bash/files/bash-5.0-history-append.patch')
-rw-r--r-- | app-shells/bash/files/bash-5.0-history-append.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app-shells/bash/files/bash-5.0-history-append.patch b/app-shells/bash/files/bash-5.0-history-append.patch deleted file mode 100644 index 20f78bfe9f03..000000000000 --- a/app-shells/bash/files/bash-5.0-history-append.patch +++ /dev/null @@ -1,34 +0,0 @@ -*** ../bash-5.0-patched/bashhist.c 2018-07-05 22:41:14.000000000 -0400 ---- bashhist.c 2019-02-23 17:12:02.000000000 -0500 -*************** -*** 437,445 **** - char *filename; - { -! int fd, result; - struct stat buf; - - result = EXECUTION_SUCCESS; -! if (history_lines_this_session > 0 && (history_lines_this_session <= where_history ())) - { - /* If the filename was supplied, then create it if necessary. */ ---- 437,445 ---- - char *filename; - { -! int fd, result, histlen; - struct stat buf; - - result = EXECUTION_SUCCESS; -! if (history_lines_this_session > 0) - { - /* If the filename was supplied, then create it if necessary. */ -*************** -*** 454,457 **** ---- 454,461 ---- - close (fd); - } -+ /* cap the number of lines we write at the length of the history list */ -+ histlen = where_history (); -+ if (histlen > 0 && history_lines_this_session > histlen) -+ history_lines_this_session = histlen; /* reset below anyway */ - result = append_history (history_lines_this_session, filename); - /* Pretend we already read these lines from the file because we just |