1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

Remove another no-op sed(1) in-place patch: none of the currently supported

drivers attempt to allocate fixed width buffer bus_type[] on stack now.
This commit is contained in:
Alexey Dokuchaev 2016-08-24 15:02:16 +00:00
parent 3e61c9e50f
commit 3e2640e0aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420797

View File

@ -124,9 +124,6 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's/d_thread_t/struct thread/' \ ${REINPLACE_CMD} -e 's/d_thread_t/struct thread/' \
${WRKSRC}/src/nvidia_ctl.c ${WRKSRC}/src/nvidia_dev.c \ ${WRKSRC}/src/nvidia_ctl.c ${WRKSRC}/src/nvidia_dev.c \
${WRKSRC}/src/nvidia_linux.c ${WRKSRC}/src/nvidia_linux.c
# Fix stack buffer overflow in nvidia_sysctl_bus_type()
${REINPLACE_CMD} -e 's/8 bus_type\[4\]/8 bus_type[8]/' \
${WRKSRC}/src/nvidia_sysctl.c
# Respect WITHOUT_LINUX setting # Respect WITHOUT_LINUX setting
${REINPLACE_CMD} -e 's/exists(\/.*/& \&\& !defined(WITHOUT_LINUX)/' \ ${REINPLACE_CMD} -e 's/exists(\/.*/& \&\& !defined(WITHOUT_LINUX)/' \
${WRKSRC}/lib/Makefile ${WRKSRC}/lib/Makefile