diff --git a/var/spack/repos/builtin/packages/openssh/package.py b/var/spack/repos/builtin/packages/openssh/package.py old mode 100644 new mode 100755 index 77dba88357..2f5441631a --- a/var/spack/repos/builtin/packages/openssh/package.py +++ b/var/spack/repos/builtin/packages/openssh/package.py @@ -65,6 +65,10 @@ def determine_version(cls, exe): match = re.search(r'OpenSSH_([^, ]+)', output) return match.group(1) if match else None + def patch(self): + # #29938: skip set-suid (also see man ssh-key-sign: it's not enabled by default) + filter_file(r'\$\(INSTALL\) -m 4711', '$(INSTALL) -m711', 'Makefile.in') + def configure_args(self): # OpenSSH's privilege separation path defaults to /var/empty. At # least newer versions want to create the directory during the