mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
Prevent patch commands from accessing source control
Closes #4357 Add -g0 option to patch to ensure it doesn't try to access source control. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
6d985f97c8
commit
ec02a34b0a
1
CHANGES
1
CHANGES
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
Issues resolved (http://bugs.uclibc.org):
|
Issues resolved (http://bugs.uclibc.org):
|
||||||
|
|
||||||
|
#4357: Prevent patch commands from accessing source control
|
||||||
#4369: Fix permissions on untared lsof archive
|
#4369: Fix permissions on untared lsof archive
|
||||||
|
|
||||||
2011.11-rc2, Released November 18th, 2011:
|
2011.11-rc2, Released November 18th, 2011:
|
||||||
|
@ -41,7 +41,7 @@ GRUB_CONFIG-$(BR2_TARGET_GRUB_w89c840) += --enable-w89c840
|
|||||||
define GRUB_DEBIAN_PATCHES
|
define GRUB_DEBIAN_PATCHES
|
||||||
# Apply the patches from the Debian patch
|
# Apply the patches from the Debian patch
|
||||||
(cd $(@D) ; for f in `cat debian/patches/00list | grep -v ^#` ; do \
|
(cd $(@D) ; for f in `cat debian/patches/00list | grep -v ^#` ; do \
|
||||||
cat debian/patches/$$f | patch -p1 ; \
|
cat debian/patches/$$f | patch -g0 -p1 ; \
|
||||||
done)
|
done)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ if [ ! -d "${patchdir}" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for i in `cd ${patchdir}; ls -d ${patchpattern} 2> /dev/null` ; do
|
for i in `cd ${patchdir}; ls -d ${patchpattern} 2> /dev/null` ; do
|
||||||
apply="patch -p1 -E -d"
|
apply="patch -g0 -p1 -E -d"
|
||||||
uncomp_parm=""
|
uncomp_parm=""
|
||||||
if [ -d "${patchdir}/$i" ] ; then
|
if [ -d "${patchdir}/$i" ] ; then
|
||||||
type="directory overlay"
|
type="directory overlay"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user