CVS commit: [netbsd-5] src/lib/libpuffs

2009-11-28 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Nov 28 16:01:03 UTC 2009

Modified Files:
src/lib/libpuffs [netbsd-5]: creds.c

Log Message:
Pull up following revision(s) (requested by pooka in ticket #1155):
lib/libpuffs/creds.c: revision 1.15
In getgroups(), copy only up to the number of supplementary groups
that actually exist.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.14.12.1 src/lib/libpuffs/creds.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpuffs/creds.c
diff -u src/lib/libpuffs/creds.c:1.14 src/lib/libpuffs/creds.c:1.14.12.1
--- src/lib/libpuffs/creds.c:1.14	Sat Dec  8 19:57:02 2007
+++ src/lib/libpuffs/creds.c	Sat Nov 28 16:01:03 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: creds.c,v 1.14 2007/12/08 19:57:02 pooka Exp $	*/
+/*	$NetBSD: creds.c,v 1.14.12.1 2009/11/28 16:01:03 bouyer Exp $	*/
 
 /*
  * Copyright (c) 2006  Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
 
 #include sys/cdefs.h
 #if !defined(lint)
-__RCSID($NetBSD: creds.c,v 1.14 2007/12/08 19:57:02 pooka Exp $);
+__RCSID($NetBSD: creds.c,v 1.14.12.1 2009/11/28 16:01:03 bouyer Exp $);
 #endif /* !lint */
 
 /*
@@ -85,10 +85,11 @@
 
 	if (!UUCCRED(pkcr)) {
 		errno = EOPNOTSUPP;
+		*ngids = 0;
 		return -1;
 	}
 
-	ncopy = MIN(*ngids, NGROUPS);
+	ncopy = MIN(*ngids, pkcr-pkcr_uuc.cr_ngroups);
 	(void)memcpy(rgids, pkcr-pkcr_uuc.cr_groups, sizeof(gid_t) * ncopy);
 	*ngids = (short)ncopy;
 



CVS commit: [netbsd-5] src/lib/libpuffs

2009-10-16 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Oct 16 12:07:23 UTC 2009

Modified Files:
src/lib/libpuffs [netbsd-5]: puffs.3 puffs.c puffs.h

Log Message:
Pull up the following revisions(s) (requested by pooka in ticket #1094):
lib/libpuffs/puffs.3:   revision 1.45
lib/libpuffs/puffs.c:   revision 1.93
lib/libpuffs/puffs.h:   revision 1.109

Add function puffs_setspecific(pu, private) which can be used to set the
specific data after the call to puffs_init().


To generate a diff of this commit:
cvs rdiff -u -r1.42.4.1 -r1.42.4.2 src/lib/libpuffs/puffs.3
cvs rdiff -u -r1.92 -r1.92.4.1 src/lib/libpuffs/puffs.c
cvs rdiff -u -r1.108 -r1.108.4.1 src/lib/libpuffs/puffs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpuffs/puffs.3
diff -u src/lib/libpuffs/puffs.3:1.42.4.1 src/lib/libpuffs/puffs.3:1.42.4.2
--- src/lib/libpuffs/puffs.3:1.42.4.1	Tue Feb 24 03:45:56 2009
+++ src/lib/libpuffs/puffs.3	Fri Oct 16 12:07:23 2009
@@ -1,4 +1,4 @@
-.\	$NetBSD: puffs.3,v 1.42.4.1 2009/02/24 03:45:56 snj Exp $
+.\	$NetBSD: puffs.3,v 1.42.4.2 2009/10/16 12:07:23 sborrill Exp $
 .\
 .\ Copyright (c) 2006, 2007, 2008 Antti Kantee.  All rights reserved.
 .\
@@ -62,6 +62,8 @@
 .Ft void *
 .Fn puffs_getspecific struct puffs_usermount *pu
 .Ft void
+.Fn puffs_setspecific struct puffs_usermount *pu void *private
+.Ft void
 .Fn puffs_setmaxreqlen struct puffs_usermount *pu size_t maxreqlen
 .Ft size_t
 .Fn puffs_getmaxreqlen struct puffs_usermount *pu
@@ -298,6 +300,9 @@
 .Fa private
 argument of
 .Fn puffs_init .
+.It Fn puffs_setspecific pu private
+Can be used to set the specific data after the call to
+.Fn puffs_init .
 .It Fn puffs_setmaxreqlen pu maxreqlen
 In case the file system desires a maximum buffer length different from
 the default, the amount

Index: src/lib/libpuffs/puffs.c
diff -u src/lib/libpuffs/puffs.c:1.92 src/lib/libpuffs/puffs.c:1.92.4.1
--- src/lib/libpuffs/puffs.c:1.92	Tue Aug 12 19:44:39 2008
+++ src/lib/libpuffs/puffs.c	Fri Oct 16 12:07:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: puffs.c,v 1.92 2008/08/12 19:44:39 pooka Exp $	*/
+/*	$NetBSD: puffs.c,v 1.92.4.1 2009/10/16 12:07:23 sborrill Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -31,7 +31,7 @@
 
 #include sys/cdefs.h
 #if !defined(lint)
-__RCSID($NetBSD: puffs.c,v 1.92 2008/08/12 19:44:39 pooka Exp $);
+__RCSID($NetBSD: puffs.c,v 1.92.4.1 2009/10/16 12:07:23 sborrill Exp $);
 #endif /* !lint */
 
 #include sys/param.h
@@ -268,6 +268,13 @@
 	return pu-pu_privdata;
 }
 
+void
+puffs_setspecific(struct puffs_usermount *pu, void *privdata)
+{
+
+	pu-pu_privdata = privdata;
+}
+
 size_t
 puffs_getmaxreqlen(struct puffs_usermount *pu)
 {

Index: src/lib/libpuffs/puffs.h
diff -u src/lib/libpuffs/puffs.h:1.108 src/lib/libpuffs/puffs.h:1.108.4.1
--- src/lib/libpuffs/puffs.h:1.108	Tue Aug 12 19:44:39 2008
+++ src/lib/libpuffs/puffs.h	Fri Oct 16 12:07:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: puffs.h,v 1.108 2008/08/12 19:44:39 pooka Exp $	*/
+/*	$NetBSD: puffs.h,v 1.108.4.1 2009/10/16 12:07:23 sborrill Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -438,6 +438,7 @@
 	  enum vtype, vsize_t, dev_t); 
 
 void			*puffs_getspecific(struct puffs_usermount *);
+void			puffs_setspecific(struct puffs_usermount *, void *);
 void			puffs_setmaxreqlen(struct puffs_usermount *, size_t);
 size_t			puffs_getmaxreqlen(struct puffs_usermount *);
 void			puffs_setfhsize(struct puffs_usermount *, size_t, int);



CVS commit: [netbsd-5] src/lib/libpuffs

2009-04-11 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Apr 12 02:24:16 UTC 2009

Modified Files:
src/lib/libpuffs [netbsd-5]: puffs_ops.3

Log Message:
Pull up following revision(s) (requested by joerg in ticket #691):
lib/libpuffs/puffs_ops.3: revision 1.24
Fix markup.


To generate a diff of this commit:
cvs rdiff -u -r1.21.4.1 -r1.21.4.2 src/lib/libpuffs/puffs_ops.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpuffs/puffs_ops.3
diff -u src/lib/libpuffs/puffs_ops.3:1.21.4.1 src/lib/libpuffs/puffs_ops.3:1.21.4.2
--- src/lib/libpuffs/puffs_ops.3:1.21.4.1	Tue Feb 24 03:45:56 2009
+++ src/lib/libpuffs/puffs_ops.3	Sun Apr 12 02:24:16 2009
@@ -1,4 +1,4 @@
-.\	$NetBSD: puffs_ops.3,v 1.21.4.1 2009/02/24 03:45:56 snj Exp $
+.\	$NetBSD: puffs_ops.3,v 1.21.4.2 2009/04/12 02:24:16 snj Exp $
 .\
 .\ Copyright (c) 2007 Antti Kantee.  All rights reserved.
 .\
@@ -563,7 +563,7 @@
 and
 .Fa pcn_targ ,
 respectively.
-.B If
+.Em If
 the target node already exists, it is specified by
 .Fa targ
 and must be replaced atomically.