[0/2,pre-commit] Two symlink fixes

Message ID 20260901202742.320498-1-tdevries@suse.de
Headers
Series Two symlink fixes |

Message

Tom de Vries Sept. 1, 2026, 8:27 p.m. UTC
  This series has two patches.

The first extends check-file-mode to disallow symlinks.

The second adds a new pre-commit hook check-copies.

Tom de Vries (2):
  [pre-commit] Reject symlinks in check-file-mode
  [pre-commit] Add check-copies

 .pre-commit-config.yaml        | 15 ++++++-
 gdb/contrib/check-copies.py    | 54 ++++++++++++++++++++++++
 gdb/contrib/check-file-mode.sh | 77 +++++++++++++++++++++++-----------
 gdbserver/.shellcheckrc        |  4 +-
 gdbsupport/.shellcheckrc       |  4 +-
 5 files changed, 126 insertions(+), 28 deletions(-)
 create mode 100755 gdb/contrib/check-copies.py
 mode change 120000 => 100644 gdbserver/.shellcheckrc
 mode change 120000 => 100644 gdbsupport/.shellcheckrc


base-commit: 6f24afa4391bd33f1263378280b99385d2c13055
  

Comments

Tom de Vries Sept. 15, 2026, 6:54 a.m. UTC | #1
On 9/1/26 10:27 PM, Tom de Vries wrote:
> This series has two patches.
> 
> The first extends check-file-mode to disallow symlinks.
> 
> The second adds a new pre-commit hook check-copies.
> 

I've pushed this.

Thanks,
- Tom

> Tom de Vries (2):
>    [pre-commit] Reject symlinks in check-file-mode
>    [pre-commit] Add check-copies
> 
>   .pre-commit-config.yaml        | 15 ++++++-
>   gdb/contrib/check-copies.py    | 54 ++++++++++++++++++++++++
>   gdb/contrib/check-file-mode.sh | 77 +++++++++++++++++++++++-----------
>   gdbserver/.shellcheckrc        |  4 +-
>   gdbsupport/.shellcheckrc       |  4 +-
>   5 files changed, 126 insertions(+), 28 deletions(-)
>   create mode 100755 gdb/contrib/check-copies.py
>   mode change 120000 => 100644 gdbserver/.shellcheckrc
>   mode change 120000 => 100644 gdbsupport/.shellcheckrc
> 
> 
> base-commit: 6f24afa4391bd33f1263378280b99385d2c13055