From d7b027308d9e1ff81bba00faa013a0fc6671c2d5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Mar 2015 20:26:21 +0100 Subject: [PATCH] xbps-src: remove stupid check for uid == 0. This is required to make xbps-src work with user namespaces. --- xbps-src | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xbps-src b/xbps-src index 291b9811234..84ca53e13db 100755 --- a/xbps-src +++ b/xbps-src @@ -468,11 +468,6 @@ XBPS_TARGET_PKG="${2##*/}" # Check if stdout is a tty; if false disable colors. test -t 1 || export NOCOLORS=1 -if [ "$(id -u)" -eq 0 ]; then - echo "ERROR: root cannot use xbps-src, switch to a regular user." - exit 1 -fi - if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then export CHROOT_READY=1 fi