summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-10-22 19:50:13 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-10-22 19:50:13 +0000
commit8b55f6f077c72d8294a67c752a4f761429ef52b0 (patch)
tree364ccd7026c8419703aa12d790399092e17828cd /src
parent0f5f1a96f4d9b1bd279e3cff4e33c33c018d9969 (diff)
downloadmdevd-8b55f6f077c72d8294a67c752a4f761429ef52b0.tar.xz
Option args need to be absolute paths
Diffstat (limited to 'src')
-rw-r--r--src/mdevd/mdevd.c5
1 files changed, 4 insertions, 1 deletions
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) ;
}