Re: [PATCH] mdmon: Stop parsing duplicate options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/13/22 03:19, Lukasz Florczak wrote:
> Introduce new function is_duplicate_opt() to check if given option
> was already used and prevent setting it again along with an error
> message.
> 
> Move parsing above in_initrd() check to be able to detect --offroot
> option duplicates.
> 
> Now help option is executed after parsing to prevent executing commands
> like: 'mdmon --help --ndlksnlksajndfjksndafasj'.
> 
> Signed-off-by: Lukasz Florczak <lukasz.florczak@xxxxxxxxxxxxxxx>
> ---
>  mdmon.c | 44 +++++++++++++++++++++++++++++++++++---------

Applied!

First guineapig patch for the patchworks Song setup (thanks!)

Thanks,
Jes




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux