Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2008 21:00:40 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 148284 for review
Message-ID:  <200808242100.m7OL0ekw065750@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=148284

Change 148284 by rwatson@rwatson_freebsd_capabilities on 2008/08/24 21:00:21

	Make fgetcap(9) return a reference to the capability, not just the
	capability, that it retrieves.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/sys/kern/kern_descrip.c#11 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/sys/kern/kern_descrip.c#11 (text+ko) ====

@@ -2151,7 +2151,7 @@
 fgetcap(struct thread *td, int fd, struct file **fpp)
 {
 
-	return (_fget(td, fd, fpp, 0, 0, FGET_GETCAP));
+	return (_fget(td, fd, fpp, 0, 0, FGET_GETCAP | FGET_HOLD));
 }
 
 /*


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808242100.m7OL0ekw065750>