|
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}" |