From 9a98e2536a0fcdd401f7cfac287bd6269a19e4ef Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sun, 2 Oct 2016 23:11:56 +0000 Subject: Add va_nlink information to struct kinfo_file (so bump the shlib minor) from Sebastien Marie --- lib/libkvm/kvm_udf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libkvm/kvm_udf.c') diff --git a/lib/libkvm/kvm_udf.c b/lib/libkvm/kvm_udf.c index 730203512c8..bb7c6f7a21a 100644 --- a/lib/libkvm/kvm_udf.c +++ b/lib/libkvm/kvm_udf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_udf.c,v 1.9 2014/12/16 03:21:10 tedu Exp $ */ +/* $OpenBSD: kvm_udf.c,v 1.10 2016/10/02 23:11:55 guenther Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long @@ -95,6 +95,7 @@ _kvm_stat_udf(kvm_t *kd, struct kinfo_file *kf, struct vnode *vp) kf->va_fileid = (long)up.u_ino; kf->va_mode = udf_permtomode(&up); /* XXX */ kf->va_rdev = 0; + kf->va_nlink = letoh16(fentry.link_cnt); if (vp->v_type & VDIR) { /* * Directories that are recorded within their ICB will show -- cgit v1.2.3