From 25bca458d144552d8d54bc20e772285de12d4dd4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Sun, 2 Jan 2011 00:31:16 +0100 Subject: [PATCH] libmount: fix tab_update test program Signed-off-by: Karel Zak --- shlibs/mount/src/tab_update.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5