summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_udf.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-10-02 23:11:56 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-10-02 23:11:56 +0000
commit9a98e2536a0fcdd401f7cfac287bd6269a19e4ef (patch)
treed2566a031d6d3a6c1e73dd71a2b0072e5fa40be1 /lib/libkvm/kvm_udf.c
parent4da7d55a1fc271a4e4295f16c2b6cac9b16c5efd (diff)
Add va_nlink information to struct kinfo_file (so bump the shlib minor)
from Sebastien Marie
Diffstat (limited to 'lib/libkvm/kvm_udf.c')
-rw-r--r--lib/libkvm/kvm_udf.c3
1 files changed, 2 insertions, 1 deletions
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 <scottl@freebsd.org>
@@ -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