]> err.no Git - util-linux/commitdiff
tests: fix ts_fstab_add function
authorKarel Zak <kzak@redhat.com>
Fri, 15 Jun 2007 09:29:04 +0000 (11:29 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Jun 2007 09:29:04 +0000 (11:29 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh

index a33b885bcb701304c2ec1e0867a870364dbcf7a5..4a59ff32d91ccc52f2c64cf9aa851056ffe73b79 100644 (file)
@@ -246,14 +246,14 @@ function ts_fstab_addline {
        local SPEC="$1"
        local MNT=${2:-"$TS_MOUNTPOINT"}
        local FS=${3:-"auto"}
-       local OPT=${4:-"default"}
+       local OPT=${4:-"defaults"}
 
-       echo "$SPEC   $MNT   $FS   defaults   0   0" >> /etc/fstab
+       echo "$SPEC   $MNT   $FS   $OPT   0   0" >> /etc/fstab
 }
 
 function ts_fstab_add {
        ts_fstab_open
-       ts_fstab_addline "$*"
+       ts_fstab_addline $*
        ts_fstab_close
 }