summaryrefslogtreecommitdiffstats
path: root/pw/tests/pw_useradd.sh
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-12 22:08:58 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-12 22:08:58 +0000
commitc1e7bb989dbd01e5ed534b0db64aa19b97f2262c (patch)
tree40d748945f4c5728dae581732e62a84353ef7a9d /pw/tests/pw_useradd.sh
parenta5020ce2c4306656996725b75203311f5ebf8e91 (diff)
downloadpw-darwin-c1e7bb989dbd01e5ed534b0db64aa19b97f2262c.tar.gz
pw-darwin-c1e7bb989dbd01e5ed534b0db64aa19b97f2262c.zip
Ensure skeldir is abolute path (relatively to the rootdir)
Diffstat (limited to 'pw/tests/pw_useradd.sh')
-rwxr-xr-xpw/tests/pw_useradd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/tests/pw_useradd.sh b/pw/tests/pw_useradd.sh
index 4cda4c8..6c71af6 100755
--- a/pw/tests/pw_useradd.sh
+++ b/pw/tests/pw_useradd.sh
@@ -268,7 +268,7 @@ user_add_skel_body() {
echo "c" > ${HOME}/skel/c/d/dot.c
mkdir ${HOME}/home
ln -sf /nonexistent ${HOME}/skel/c/foo
- atf_check -s exit:0 ${RPW} useradd foo -k skel -m
+ atf_check -s exit:0 ${RPW} useradd foo -k /skel -m
test -d ${HOME}/home/foo || atf_fail "Directory not created"
test -f ${HOME}/home/foo/.a || atf_fail "File not created"
atf_check -o file:${HOME}/skel/.a -s exit:0 cat ${HOME}/home/foo/.a