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:
parent
c713745314
commit
8c6b8e90e3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user