Skip to content

Instantly share code, notes, and snippets.

@click0
Last active July 5, 2024 15:43
Show Gist options
  • Save click0/4d7f3e071a6c83c191bcfc27b59d2c5c to your computer and use it in GitHub Desktop.
Save click0/4d7f3e071a6c83c191bcfc27b59d2c5c to your computer and use it in GitHub Desktop.
Патчи в FreeBSD-SA-24:04.openssh для разных веток FreeBSD
#!/bin/sh
# License:
# Public Domain
# Author:
# Eugene Grosbein
# Description:
# Пользователям stable, чтобы не пересобирать мир для исправления FreeBSD-SA-24:04.openssh
# Source:
# https://dadv.livejournal.com/210230.html
# https://dadv.dreamwidth.org/196762.html
fetch -o- https://security.FreeBSD.org/patches/SA-24:04/openssh-13.2.patch | sed '/version/,$d' > ~/openssh.patch
cd /usr/src
patch < ~/openssh.patch
cd secure/lib/libssh
make all install
cd ../../usr.sbin/sshd
make clean all install
service sshd restart
cd ../../usr.bin/ssh
make clean all install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment