From a7f8176be6728009b13ef9bb2dc7afbcee177072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Fran=C3=A7ois?= Date: Sat, 20 Sep 2014 22:35:21 +0200 Subject: [PATCH] useradd now uses link rather than rename --- .../data/useradd.err | 4 ++-- .../10_useradd_rename_defaults_backup_failure/useradd.test | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/data/useradd.err b/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/data/useradd.err index 887640ce..7ec53ac7 100644 --- a/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/data/useradd.err +++ b/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/data/useradd.err @@ -1,2 +1,2 @@ -rename FAILURE /etc/default/useradd /etc/default/useradd- -useradd: rename: /etc/default/useradd: Input/output error +link FAILURE /etc/default/useradd /etc/default/useradd- +useradd: Cannot create backup file (/etc/default/useradd-): Input/output error diff --git a/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/useradd.test b/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/useradd.test index da9a2bdd..241f727f 100755 --- a/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/useradd.test +++ b/tests/failures/useradd/10_useradd_rename_defaults_backup_failure/useradd.test @@ -7,7 +7,7 @@ cd $(dirname $0) . ../../../common/config.sh . ../../../common/log.sh -log_start "$0" "useradd reports failure to write /etc/gshadow" +log_start "$0" "useradd reports failure to create backup /etc/default/useradd-" save_config @@ -17,7 +17,7 @@ trap 'log_status "$0" "FAILURE"; restore_config' 0 change_config echo -n "Set default value (useradd -D -g 10)..." -LD_PRELOAD=../../../common/rename_failure.so FAILURE_PATH=/etc/default/useradd- useradd -D -g 10 2>tmp/useradd.err && exit 1 || { +LD_PRELOAD=../../../common/link_failure.so FAILURE_PATH=/etc/default/useradd- useradd -D -g 10 2>tmp/useradd.err && exit 1 || { status=$? } echo "OK"