Skip to content

Commit

Permalink
intg: Generate tmp dir with lowercase
Browse files Browse the repository at this point in the history
This is a workaround for buggy python-requests 2.12.4.
It cannot handle uppercase letters in file path.

The manual page MKTEMP(1) says that the parameter --dry-run is unsafe.
It is not critical for our use-case in CI but we should revert the patch
after fixed version of puython-request will be released

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
  • Loading branch information
Lukas Slebodnik committed Jan 2, 2017
1 parent 69fb159 commit 929bb11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Expand Up @@ -3103,7 +3103,9 @@ intgcheck-prepare:
rm -Rf intg; \
$(MKDIR_P) intg/bld; \
: Use /hopefully/ short prefix to keep D-Bus socket path short; \
prefix=`mktemp --tmpdir --directory sssd-intg.XXXXXXXX`; \
prefix=`mktemp --dry-run --tmpdir --directory sssd-intg.XXXXXXXX`; \
prefix=`echo $$prefix | tr '[:upper:]' '[:lower:]'`; \
mkdir -p $$prefix; \
$(LN_S) "$$prefix" intg/pfx; \
cd intg/bld; \
$(abs_top_srcdir)/configure \
Expand Down

0 comments on commit 929bb11

Please sign in to comment.