diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2017-03-10 16:52:27 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-10 16:52:27 +0000 |
commit | 8c6b8e90e34df6742cfb348ad9225cbdf6b51283 (patch) | |
tree | 4655ecf2ac4f42365ae87b49b673aa23df05236d /libdm | |
parent | c71374531414081aa2aad71317dac55fc024a0d5 (diff) | |
download | lvm2-8c6b8e90e34df6742cfb348ad9225cbdf6b51283.tar.gz |
libdm: use correct value for NR_FILEMAPD_ARGS
The argument count for the file mapping daemon needs to account
for the program's name in argv[0] to avoid indexing off the end
of the argument array.
Diffstat (limited to 'libdm')
-rw-r--r-- | libdm/libdm-stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index c83c27bd2..5fc4938b2 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4927,7 +4927,7 @@ dm_filemapd_mode_t dm_filemapd_mode_from_string(const char *mode_str) } #define DM_FILEMAPD "dmfilemapd" -#define NR_FILEMAPD_ARGS 6 +#define NR_FILEMAPD_ARGS 7 /* includes argv[0] */ /* * Start dmfilemapd to monitor the specified file descriptor, and to * update the group given by 'group_id' when the file's allocation |