Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
remote-helpers: tests: use python directly
[gitweb.git]
/
abspath.c
diff --git
a/abspath.c
b/abspath.c
index f8a526f3916d753addac6acce1986cd3079472b8..40cdc46219d4eba87ba947d9f5556eb80dfdfa9b 100644
(file)
--- a/
abspath.c
+++ b/
abspath.c
@@
-153,6
+153,11
@@
const char *real_path(const char *path)
return real_path_internal(path, 1);
}
+const char *real_path_if_valid(const char *path)
+{
+ return real_path_internal(path, 0);
+}
+
static const char *get_pwd_cwd(void)
{
static char cwd[PATH_MAX + 1];