]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon: implement mkdir -p directly in lldpd
authorVincent Bernat <vincent@bernat.ch>
Wed, 8 Aug 2018 21:06:39 +0000 (23:06 +0200)
committerVincent Bernat <vincent@bernat.ch>
Wed, 8 Aug 2018 21:12:21 +0000 (23:12 +0200)
commit90a50860ebdcdeb5b7dc85790b18bed23c97ec32
treec6dbccba0c7f2bf5f2647081a56033b60cab718d
parentb6e63f2f8610953d4d80a4d44562bf117c4335ad
daemon: implement mkdir -p directly in lldpd

It's difficult to know the path to mkdir. If we use the one from
autoconf (@mkdir_p@), we get the path from the host, not the target.
If we hardcode `/bin/mkdir`, we may not work on platforms like NixOS.

See https://github.com/NixOS/nixpkgs/issues/44507.
src/daemon/lldpd.service.in
src/daemon/priv.c