diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2005-05-05 14:38:25 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 08:23:01 -0700 |
commit | 8ae0a8c514dc492de8aadf3ca6bb4ad55e33960e (patch) | |
tree | 13ef1d82cc91ccc9a4a7534aa8a3cf9cd85b0b59 /check-files.c | |
parent | 5210372fe4a2e2ec73291434e86c07345524a276 (diff) | |
download | git-8ae0a8c514dc492de8aadf3ca6bb4ad55e33960e.tar.gz git-8ae0a8c514dc492de8aadf3ca6bb4ad55e33960e.tar.xz |
[PATCH] git and symlinks as tracked content
Allow to store and track symlink in the repository. A symlink is stored
the same way as a regular file, only with the appropriate mode bits set.
The symlink target is therefore stored in a blob object.
This will hopefully make our udev repository fully functional. :)
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'check-files.c')
-rw-r--r-- | check-files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check-files.c b/check-files.c index 7d16691aa..bfd5590e0 100644 --- a/check-files.c +++ b/check-files.c @@ -28,8 +28,8 @@ static void check_file(const char *path) die("preparing to update existing file '%s' not in cache", path); ce = active_cache[pos]; - if (fstat(fd, &st) < 0) - die("fstat(%s): %s", path, strerror(errno)); + if (lstat(path, &st) < 0) + die("lstat(%s): %s", path, strerror(errno)); changed = cache_match_stat(ce, &st); if (changed) |