Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 225007 | Differences between
and this patch

Collapse All | Expand All

(-)git.eclass (+6 lines)
Lines 177-182 Link Here
177
		mkdir -p "${EGIT_STORE_DIR}" \
177
		mkdir -p "${EGIT_STORE_DIR}" \
178
			|| die "${EGIT}: can't mkdir ${EGIT_STORE_DIR}."
178
			|| die "${EGIT}: can't mkdir ${EGIT_STORE_DIR}."
179
		export SANDBOX_WRITE="${SANDBOX_WRITE%%:/}"
179
		export SANDBOX_WRITE="${SANDBOX_WRITE%%:/}"
180
	elif [[ $(find "${EGIT_STORE_DIR}" -maxdepth 0 -type d -perm -o+w) ]]; then
181
		# Found world-writable directory, created by previous buggy version
182
		# of this eclass. This is a security issue, so refuse to continue.
183
		eerror "Directory ${EGIT_STORE_DIR} is world-writable which is"
184
		eerror "a security issue. Please remove it and retry."
185
		die "${EGIT}: ${EGIT_STORE_DIR} is world-writable"
180
	fi
186
	fi
181
187
182
	cd -P "${EGIT_STORE_DIR}" || die "${EGIT}: can't chdir to ${EGIT_STORE_DIR}"
188
	cd -P "${EGIT_STORE_DIR}" || die "${EGIT}: can't chdir to ${EGIT_STORE_DIR}"
(-)mercurial.eclass (+6 lines)
Lines 37-42 Link Here
37
			chmod -f g+rw "${EHG_STORE_DIR}" &&
37
			chmod -f g+rw "${EHG_STORE_DIR}" &&
38
			export SANDBOX_WRITE="${SANDBOX_WRITE%:/}"
38
			export SANDBOX_WRITE="${SANDBOX_WRITE%:/}"
39
		eend $? || die
39
		eend $? || die
40
	elif [[ $(find "${EHG_STORE_DIR}" -maxdepth 0 -type d -perm -o+w) ]]; then
41
		# Found world-writable directory, created by previous buggy version
42
		# of this eclass. This is a security issue, so refuse to continue.
43
		eerror "Directory ${EHG_STORE_DIR} is world-writable which is"
44
		eerror "a security issue. Please remove it and retry."
45
		die "${EHG_STORE_DIR} is world-writable"
40
	fi
46
	fi
41
47
42
	pushd "${EHG_STORE_DIR}" >/dev/null \
48
	pushd "${EHG_STORE_DIR}" >/dev/null \
(-)subversion.eclass (+6 lines)
Lines 192-197 Link Here
192
	if [[ ! -d ${ESVN_STORE_DIR} ]]; then
192
	if [[ ! -d ${ESVN_STORE_DIR} ]]; then
193
		debug-print "${FUNCNAME}: initial checkout. creating subversion directory"
193
		debug-print "${FUNCNAME}: initial checkout. creating subversion directory"
194
		mkdir -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}."
194
		mkdir -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}."
195
	elif [[ $(find "${ESVN_STORE_DIR}" -maxdepth 0 -type d -perm -o+w) ]]; then
196
		# Found world-writable directory, created by previous buggy version
197
		# of this eclass. This is a security issue, so refuse to continue.
198
		eerror "Directory ${ESVN_STORE_DIR} is world-writable which is"
199
		eerror "a security issue. Please remove it and retry."
200
		die "${ESVN}: ${ESVN_STORE_DIR} is world-writable"
195
	fi
201
	fi
196
202
197
	cd "${ESVN_STORE_DIR}" || die "${ESVN}: can't chdir to ${ESVN_STORE_DIR}"
203
	cd "${ESVN_STORE_DIR}" || die "${ESVN}: can't chdir to ${ESVN_STORE_DIR}"
(-)bzr.eclass (+6 lines)
Lines 140-145 Link Here
140
		mkdir -p "${EBZR_STORE_DIR}" \
140
		mkdir -p "${EBZR_STORE_DIR}" \
141
			|| die "${EBZR}: can't mkdir ${EBZR_STORE_DIR}."
141
			|| die "${EBZR}: can't mkdir ${EBZR_STORE_DIR}."
142
		export SANDBOX_WRITE="${SANDBOX_WRITE%%:/}"
142
		export SANDBOX_WRITE="${SANDBOX_WRITE%%:/}"
143
	elif [[ $(find "${EBZR_STORE_DIR}" -maxdepth 0 -type d -perm -o+w) ]]; then
144
		# Found world-writable directory, created by previous buggy version
145
		# of this eclass. This is a security issue, so refuse to continue.
146
		eerror "Directory ${EBZR_STORE_DIR} is world-writable which is"
147
		eerror "a security issue. Please remove it and retry."
148
		die "${EBZR}: ${EBZR_STORE_DIR} is world-writable"
143
	fi
149
	fi
144
150
145
	cd -P "${EBZR_STORE_DIR}" || die "${EBZR}: can't chdir to ${EBZR_STORE_DIR}"
151
	cd -P "${EBZR_STORE_DIR}" || die "${EBZR}: can't chdir to ${EBZR_STORE_DIR}"

Return to bug 225007