From 8b55f6f077c72d8294a67c752a4f761429ef52b0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 22 Oct 2017 19:50:13 +0000 Subject: Option args need to be absolute paths --- src/mdevd/mdevd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index 3df038a..296f290 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -918,7 +918,10 @@ int main (int argc, char const *const *argv) } } argc -= l.ind ; argv += l.ind ; - if (configfile[0] != '/') strerr_dief1x(100, "conffile must be an absolute path") ; + if (configfile[0] != '/') strerr_dief2x(100, configfile, " is not an absolute path") ; + if (slashsys[0] != '/') strerr_dief2x(100, slashsys, " is not an absolute path") ; + if (slashdev[0] != '/') strerr_dief2x(100, slashdev, " is not an absolute path") ; + if (fwbase[0] != '/') strerr_dief2x(100, fwbase, " is not an absolute path") ; if (chdir(slashdev) < 0) strerr_diefu2sys(111, "chdir to ", slashdev) ; } -- cgit 1.4.1