URL:
https://github.com/freeipa/freeipa/pull/3794
Author: flo-renaud
Title: #3794: ipa-backup: fix python2 issue with os.mkdir
Action: opened
PR body:
"""
Python2 and python3 have different interfaces for os.mkdir:
python2: os.mkdir(path[, mode])
python3: os.mkdir(path, mode=0o777, *, dir_fd=None)
ipa-backup is using the python3 format, which breaks deployments using
python2. The fix consists in using os.mkdir(path, 0o700) instead of
os.mkdir(path, mode=0o700).
Fixes:
https://pagure.io/freeipa/issue/8099
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3794/head:pr3794
git checkout pr3794