don't use wordexp.h for tilde expansion

wordexp.h is not supported by OpenBSD. Therefore do tilde expansion only
via glob().
rename glob_path() to resolve_tilde() since it should not do globbing.
This commit is contained in:
Christopher Zimmermann
2010-07-15 14:35:17 +02:00
committed by Michael Stapelberg
parent ca8d775487
commit 4d4ce82b35
3 changed files with 35 additions and 28 deletions

View File

@ -126,9 +126,11 @@ struct Config {
/**
* This function resolves ~ in pathnames.
* It may resolve wildcards in the first part of the path, but if no match
* or multiple matches are found, it just returns a copy of path as given.
*
*/
char *glob_path(const char *path);
char *resolve_tilde(const char *path);
/**
* Checks if the given path exists by calling stat().