Subject: Re: stat link count

Re: stat link count

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 27 Oct 2020 21:09:21 +0000

San wrote:
> I want to get the link count in the stat attributes.
> There is a patch for openssh here:
> https://bugzilla.mindrot.org/show_bug.cgi?id=2579
> and apparently is working fine.

Did you review the patch?

It may not be obvious, but the patch contains a memory leak and may
have other problems. I guess this may be part of why it has not been
included in OpenSSH.

> Does anyone know if there is a fork of libssh2 that implements link count?

I find that to be a really obnoxious question, especially on the libssh2 list.
Further, it suggests that your only interest is consumption, which isn't a
useful attitude in and around community projects.

> or any hint on how to implement it?

The OpenSSH patch is short, so this feature is an excellent candidate
for a developer wanting to learn how to work with the libssh2 code.

I encourage you to go for it!

//Peter
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2020-10-27