summaryrefslogtreecommitdiff
path: root/restore.c
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2012-11-20 14:26:46 +0800
committerDavid Sterba <dsterba@suse.cz>2013-01-17 18:27:55 +0100
commit8c5b2ae588446e23dccf76120418b6b3892002f4 (patch)
tree2b2acce2f2a9fb9b23f1535f14c2131aa97a8735 /restore.c
parent88016b0ee92e0c221a5eebbaf016a3bbe2b77034 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/restore.c b/restore.c
index c447416a..80afb843 100644
--- a/restore.c
+++ b/restore.c
@@ -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;
}