/* Maximum number of PIDs system supports */
#define _PATH_PROC_PIDMAX "/proc/sys/kernel/pid_max"
+/* libeconf default */
+#ifndef _PATH_VENDORDIR
+# define _PATH_VENDORDIR "/usr/etc"
+#endif
+
#endif /* PATHNAMES_H */
free_getlogindefs_data();
error = econf_readDirs(&file,
-#if USE_VENDORDIR
_PATH_VENDORDIR,
-#else
- NULL,
-#endif
"/etc", "login", "defs", "= \t", "#");
if (error)
#include "blkidP.h"
#include "env.h"
+#include "pathnames.h"
static int parse_evaluate(struct blkid_config *conf, char *s)
{
error = econf_readFile(&file, filename, "= \t", "#");
} else {
error = econf_readDirs(&file,
-#if USE_VENDORDIR
_PATH_VENDORDIR,
-#else
- NULL,
-#endif
"/etc", "blkid", "conf", "= \t", "#");
}
conf.set_quoted('CONFIG_ADJTIME_PATH', '/etc/adjtime')
conf.set_quoted('ADJTIME_PATH', '/etc/adjtime') # yes, both are used :(
-conf.set_quoted('_PATH_VENDORDIR', vendordir)
+if vendordir != ''
+ conf.set_quoted('_PATH_VENDORDIR', vendordir)
+endif
conf.set('USE_VENDORDIR', vendordir == '' ? false : 1)
build_libblkid = get_option('build-libblkid').allowed()