From: Karel Zak Date: Sat, 1 Jan 2011 23:31:16 +0000 (+0100) Subject: libmount: fix tab_update test program X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25bca458d144552d8d54bc20e772285de12d4dd4;p=util-linux libmount: fix tab_update test program Signed-off-by: Karel Zak --- diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c index 986eff8e..9638f47c 100644 --- a/shlibs/mount/src/tab_update.c +++ b/shlibs/mount/src/tab_update.c @@ -886,8 +886,10 @@ static int test_move(struct mtest *ts, int argc, char *argv[]) if (argc < 3) return -1; + mnt_fs_set_source(fs, argv[1]); mnt_fs_set_target(fs, argv[2]); - rc = update(argv[1], fs, MS_MOVE); + + rc = update(NULL, fs, MS_MOVE); mnt_free_fs(fs); return rc;