diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2012-11-20 14:26:46 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-17 18:27:55 +0100 |
commit | 8c5b2ae588446e23dccf76120418b6b3892002f4 (patch) | |
tree | 2b2acce2f2a9fb9b23f1535f14c2131aa97a8735 /restore.c | |
parent | 88016b0ee92e0c221a5eebbaf016a3bbe2b77034 (diff) |
btrfs-progs: print the right mount checking info in restore.c
The mount status is checked against the arg <device> (argv[optind]),
not the <directory>. Correct the info printed on <device> mounted.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Diffstat (limited to 'restore.c')
-rw-r--r-- | restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -830,7 +830,7 @@ int main(int argc, char **argv) strerror(ret)); return ret; } else if (ret) { - fprintf(stderr, "%s is currently mounted. Aborting.\n", argv[optind + 1]); + fprintf(stderr, "%s is currently mounted. Aborting.\n", argv[optind]); return -EBUSY; } |