1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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.
This commit is contained in:
Bryn M. Reeves 2017-03-10 16:52:27 +00:00
parent c713745314
commit 8c6b8e90e3

View File

@ -4927,7 +4927,7 @@ dm_filemapd_mode_t dm_filemapd_mode_from_string(const char *mode_str)
} }
#define DM_FILEMAPD "dmfilemapd" #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 * Start dmfilemapd to monitor the specified file descriptor, and to
* update the group given by 'group_id' when the file's allocation * update the group given by 'group_id' when the file's allocation