From 8ae0a8c514dc492de8aadf3ca6bb4ad55e33960e Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 5 May 2005 14:38:25 +0200 Subject: [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 Signed-off-by: Linus Torvalds --- ls-files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ls-files.c') diff --git a/ls-files.c b/ls-files.c index 8b53f2fd52..58b5aee94e 100644 --- a/ls-files.c +++ b/ls-files.c @@ -199,7 +199,7 @@ static void show_files(void) struct stat st; if (excluded(ce->name) != show_ignored) continue; - if (!stat(ce->name, &st)) + if (!lstat(ce->name, &st)) continue; printf("%s%c", ce->name, line_terminator); } -- cgit v1.2.1