]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: use the correct file name when restoring the original fstab
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 23 Aug 2023 13:10:23 +0000 (15:10 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 24 Aug 2023 07:54:13 +0000 (07:54 +0000)
test/units/testsuite-07.mount-invalid-chars.sh

index 5a07d14d04387bf1946c1b03b930eb7946d2a824..a87933486961e540134960dae069f0c738f99a1a 100755 (executable)
@@ -52,7 +52,7 @@ systemctl daemon-reload
 [[ "$(systemctl show -P UnitFileState foo-fstab-opt.mount)" == bad ]]
 rm -f /etc/fstab
 
-[[ -e /tmp/fstab.bak ]] && mv -f /tmp/fstab /etc/fstab
+[[ -e /tmp/fstab.bak ]] && mv -f /tmp/fstab.bak /etc/fstab
 systemctl daemon-reload
 
 # c) Mount unit