From b28d45d2bd2462414b9dbbe38e6c7f3d5f7b462b Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Sun, 23 Jun 2019 22:06:37 +0200 Subject: New upstream version 4.7 --- .../35_usermod-u_invalid_UID/usermod.test | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100755 tests/usertools/35_usermod-u_invalid_UID/usermod.test (limited to 'tests/usertools/35_usermod-u_invalid_UID/usermod.test') diff --git a/tests/usertools/35_usermod-u_invalid_UID/usermod.test b/tests/usertools/35_usermod-u_invalid_UID/usermod.test deleted file mode 100755 index 43f0dafb..00000000 --- a/tests/usertools/35_usermod-u_invalid_UID/usermod.test +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../common/config.sh -. ../../common/log.sh - -log_start "$0" "usermod checks if the uid is valid" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -echo -n "Change the user's UID (usermod -u 100a1 foo)..." -usermod -u 100a1 foo 2>tmp/usermod.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "3" -echo "OK" - -echo "usermod reported:" -echo "=======================================================================" -cat tmp/usermod.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/usermod.err tmp/usermod.err -echo "error message OK." -rm -f tmp/usermod.err - -echo -n "Check the passwd file..." -../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - -- cgit v1.2.1