diff options
author | Steffen Prohaska <prohaska@zib.de> | 2007-11-25 23:29:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-26 12:32:05 -0800 |
commit | ecf4831d89ba6986249e1bf232b2e2f5f7536223 (patch) | |
tree | ffb6be8a679cd9bb2b9edfd2699966a15284da63 /lockfile.c | |
parent | e0fda6abd11c567b72f29ec0ee06c541404a9cb7 (diff) | |
download | git-ecf4831d89ba6986249e1bf232b2e2f5f7536223.tar.gz |
Use is_absolute_path() in diff-lib.c, lockfile.c, setup.c, trace.c
Using the helper function to test for absolute paths makes porting easier.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'lockfile.c')
-rw-r--r-- | lockfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lockfile.c b/lockfile.c index 258fb3f5ef..f45d3ed544 100644 --- a/lockfile.c +++ b/lockfile.c @@ -94,7 +94,7 @@ static char *resolve_symlink(char *p, size_t s) return p; } - if (link[0] == '/') { + if (is_absolute_path(link)) { /* absolute path simply replaces p */ if (link_len < s) strcpy(p, link); |