我正在尝试用所有 10 个勘误表来修补 OpenBSD 5.5。
我用来打补丁的命令是:
signify -Vep /etc/signify/openbsd-55-base.pub -x /path/to/patch/ \
-m - | (cd /usr/src && patch -p0)
007_sendmail.patch.sig 和 009_dhcp.patch.sig 在修补时会出现一些问题。
应用007_sendmail.patch.sig时的错误消息是:
Patching file gnu/usr.sbin/sendmail/conf.c using Plan A...
Hunk #1 succeeded at 5309
done
#cd gnu/usr.sbin/sendmail
ksh:cd: /root/gnu/usr.sbin/sendmail - No such file or directory
#make obj
make: don't know how to make obj
Stop in /root
009_dhcp.patch.sig 还存在一些问题:
#cd sbin/dhclient
ksh:cd: /root/sbin/dhclient - No such file or directory
答案1
这里很清楚:
#cd gnu/usr.sbin/sendmail
ksh:cd: /root/gnu/usr.sbin/sendmail - No such file or directory
你在 /root 中,并且你应该在 /usr/src 中