unix-startup: fix segfault if no config and other details
The addition of a trailing \n (suggested by me) cannot be made
if in /etc/ppsi.conf exists: configuration is a constant string
This also simplifies the code and makes better error management: we
can use fprintf here, and fopen/fread as well.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment