diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2023-01-02 09:46:21 +0100 |
---|---|---|
committer | Jes Sorensen <jes@trained-monkey.org> | 2023-01-04 16:25:56 +0100 |
commit | 9b429fc0a4ffd7028b3b336589d38e32fb9045dc (patch) | |
tree | e7e684de086b3bfbdd2afca2f69b05a9b598c11e /Makefile | |
parent | Change char* to enum in context->update & refactor code (diff) | |
download | mdadm-9b429fc0a4ffd7028b3b336589d38e32fb9045dc.tar.xz mdadm-9b429fc0a4ffd7028b3b336589d38e32fb9045dc.zip |
mdmon: fix segfault
Mdmon crashes if stat2devnm returns null.
Use open_mddev to check if device is mddevice and get name using
fd2devnm.
Refactor container name handling.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ SRCS = $(patsubst %.o,%.c,$(OBJS)) INCL = mdadm.h part.h bitmap.h -MON_OBJS = mdmon.o monitor.o managemon.o uuid.o util.o maps.o mdstat.o sysfs.o \ +MON_OBJS = mdmon.o monitor.o managemon.o uuid.o util.o maps.o mdstat.o sysfs.o config.o mapfile.o mdopen.o\ policy.o lib.o \ Kill.o sg_io.o dlink.o ReadMe.o super-intel.o \ super-mbr.o super-gpt.o \ |