/*!
- * check if the path is absolute
+ * check if the path is relative or absolute (if contains the dir separator)
*/
static int
has_path(const char *path)
{
- if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL)
- return 0;
-
- return 1;
+ return dbuf_splitPath(path, NULL, NULL);
}