From 1906db76b44d5cddf8c89caa09db7e1b4ccd8e13 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 6 Apr 2021 17:37:45 +0200 Subject: [inc/useradd] do not overwrite USER --- core/includes/useradd.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'core/includes') diff --git a/core/includes/useradd.inc b/core/includes/useradd.inc index 2beaaeae..b5a7aaf3 100644 --- a/core/includes/useradd.inc +++ b/core/includes/useradd.inc @@ -207,6 +207,7 @@ add_group () { init_users_and_groups() { [ -z "$TARGET_BUILD_DIR" -o "$TARGET_BUILD_DIR" == "/" ] && perror "Almost wrecked your local passwd, group and shadow file. phew." + local USER local PASSWD="$TARGET_BUILD_DIR/etc/passwd" local GROUP="$TARGET_BUILD_DIR/etc/group" local SHADOW="$TARGET_BUILD_DIR/etc/shadow" -- cgit v1.2.3-55-g7522