aboutsummaryrefslogtreecommitdiff
path: root/bin/chmod
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-08-02 21:20:49 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-08-02 21:20:49 +0000
commit3e46b70f38e628af925f57382fe7cdfad72e70a4 (patch)
treec7348332c6d195f59cd7d7fb05b3e4c74b4a4181 /bin/chmod
parent2d3e9c25f1e19ae02ceb06c7ce3740bf8e31e6f5 (diff)
downloadsrc-3e46b70f38e628af925f57382fe7cdfad72e70a4.tar.gz
src-3e46b70f38e628af925f57382fe7cdfad72e70a4.zip
Always use first parameter passed to get_filesystem(..) instead of discarding it
and using `.` instead. MFC after: 1 week MFC with: r321949 PR: 221189 [1], 221188 [2]
Notes
Notes: svn path=/head/; revision=321950
Diffstat (limited to 'bin/chmod')
-rwxr-xr-xbin/chmod/tests/chmod_test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/chmod/tests/chmod_test.sh b/bin/chmod/tests/chmod_test.sh
index 33b28d3ace92..0ac438d3c5a6 100755
--- a/bin/chmod/tests/chmod_test.sh
+++ b/bin/chmod/tests/chmod_test.sh
@@ -27,7 +27,9 @@
get_filesystem()
{
- df -T . | tail -n 1 | cut -wf 2
+ local mountpoint=$1
+
+ df -T $mountpoint | tail -n 1 | cut -wf 2
}
atf_test_case RH_flag