author | Bradford C. Smith <bradford.carl.smith@gmail.com> | |
Thu, 26 Jul 2007 17:34:14 +0000 (13:34 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 Jul 2007 07:02:05 +0000 (00:02 -0700) | ||
commit | 5d5a7a67384ad03007eea1f365ee255c02a40fa3 | |
tree | 6064b9f7a5608bcf253066bb4579a415a7d7e4c4 | tree | snapshot |
parent | 7ab3cc70a6aad2e4f8ccaa98e5520aa126eaef8f | commit | diff |
fully resolve symlinks when creating lockfiles
Make the code for resolving symlinks in lockfile.c more robust as
follows:
1. Handle relative symlinks
2. recursively resolve symlink chains up to 5
[jc: removed lstat/stat calls to do things stupid way]
Signed-off-by: Bradford C. Smith <bradford.carl.smith@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Make the code for resolving symlinks in lockfile.c more robust as
follows:
1. Handle relative symlinks
2. recursively resolve symlink chains up to 5
[jc: removed lstat/stat calls to do things stupid way]
Signed-off-by: Bradford C. Smith <bradford.carl.smith@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lockfile.c | diff | blob | history |