[PATCH v3] Move AUR_OVERWRITE privilege check from git/auth to git/update

Lukas Fleischer lfleischer at archlinux.org
Sun Jan 21 17:09:54 UTC 2018


On Sun, 21 Jan 2018 at 17:51:02, Johannes Löthberg wrote:
> git/auth is run as an AutherizedKeysCommand which does not get the
> environment variables passed to it, so AUR_OVERWRITE always got
> hard-set to '0' by it.  Instead we need to perform the actual privilege
> check in git/update instead.
> 
> Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
> ---
> Removed unrelated garbage README change
> 
>  aurweb/git/auth.py       |  1 -
>  aurweb/git/update.py     |  2 +-
>  test/t1100-git-auth.sh   | 17 -----------------
>  test/t1300-git-update.sh | 14 +++++++++++++-
>  4 files changed, 14 insertions(+), 20 deletions(-)

Merged, thanks!


More information about the aur-dev mailing list