btrfs-progs: fix argv0_buf handling
authorDavid Sterba <dsterba@suse.cz>
Mon, 8 Jun 2015 21:30:21 +0000 (23:30 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 9 Jun 2015 11:32:32 +0000 (13:32 +0200)
commit54003d7ee6c71011ec41a5e4e557ec6c83a831de
tree460d37aec4b614740bd3c87a43f1786e992c561b
parente99303c381b4041f8b5fce6f757242c5f1162c76
btrfs-progs: fix argv0_buf handling

The variable argv0_buf was duplicated and the changes done in utils.c
were not propagated to help.c. So if an unknown commandline token was
found, the error message did not contain the known part:

 $ btrfs scrub test
 : unknown token 'test'

instead of

 $ btrfs scrub test
 btrfs scrub: uknown token 'test'

Signed-off-by: David Sterba <dsterba@suse.cz>
help.c
utils.c
utils.h