Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
real_path: set errno when max number of symlinks is exceeded
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 9c86d1924a23e4c81369f34ec8e1058c2dd15c1f..6a03cc39342cde47adee9664786fcf3af93c7f0d 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-291,7
+291,7
@@
static int link_alt_odb_entry(const char *entry, const char *relative_base,
struct strbuf pathbuf = STRBUF_INIT;
if (!is_absolute_path(entry) && relative_base) {
- strbuf_
addstr(&pathbuf, real_path(relative_base)
);
+ strbuf_
realpath(&pathbuf, relative_base, 1
);
strbuf_addch(&pathbuf, '/');
}
strbuf_addstr(&pathbuf, entry);