1From 1becf15eefaf4c7b5ac650095e2af04d2902200c Mon Sep 17 00:00:00 2001
2From: hovercats <hovercatswithlasereyes@protonmail.com>
3Date: Mon, 23 Oct 2023 20:45:04 +0200
4Subject: [PATCH] fnck.c: dont check if DEST is a symlink. kiss will error out
5 when installing if symlinks for the package already exists.
6
7---
8 libutil/fnck.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/libutil/fnck.c b/libutil/fnck.c
12index 4f8875b..214b298 100644
13--- a/libutil/fnck.c
14+++ b/libutil/fnck.c
15@@ -10,7 +10,7 @@ fnck(const char *a, const char *b,
16 struct stat sta, stb;
17
18 if (!stat(a, &sta)
19- && !stat(b, &stb)
20+ && !lstat(b, &stb)
21 && sta.st_dev == stb.st_dev
22 && sta.st_ino == stb.st_ino) {
23 weprintf("%s -> %s: same file\n", a, b);
24--
252.45.1
26