inittab: use more robust dev_exist() implementation
authorJo-Philipp Wich <jo@mein.io>
Tue, 17 May 2016 15:42:10 +0000 (17:42 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 17 May 2016 08:40:40 +0000 (10:40 +0200)
commitf2c77756933f22981c1202c039e7f7e24d7247f3
tree026dfa02deb64d862f1ffbe361d43b5616689ea5
parent8c24d75f610f85397273c5332657ba77e85b4323
inittab: use more robust dev_exist() implementation

Rework the dev_exist() function to use openat() in order to resolve the device
file relative to the "/dev" directory. Drop the now unused dev_open() function.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
inittab.c