When zlog_init is given a path to a non-regular file, it doesn't return an error. Instead, the logger is configured as if it was given an empty file.
For example, consider the following:
zlog_init("/etc/zlog.conf") // no error, works fine
zlog_init("/etc/zlog.con") // error, works fine
zlog_init("/etc") // no error ???
Shouldn't an error be returned in the last case?
When zlog_init is given a path to a non-regular file, it doesn't return an error. Instead, the logger is configured as if it was given an empty file.
For example, consider the following:
Shouldn't an error be returned in the last case?