fully resolve symlinks when creating lockfiles
commit5d5a7a67384ad03007eea1f365ee255c02a40fa3
authorBradford C. Smith <bradford.carl.smith@gmail.com>
Thu, 26 Jul 2007 17:34:14 +0000 (26 13:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Jul 2007 07:02:05 +0000 (27 00:02 -0700)
tree6064b9f7a5608bcf253066bb4579a415a7d7e4c4
parent7ab3cc70a6aad2e4f8ccaa98e5520aa126eaef8f
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>
lockfile.c