Deleted Added
full compact
nfs_clport.c (194523) nfs_clport.c (194541)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clport.c 194523 2009-06-20 00:54:57Z rmacklem $");
35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clport.c 194541 2009-06-20 17:11:07Z rmacklem $");
36
37/*
38 * generally, I don't like #includes inside .h files, but it seems to
39 * be the easiest way to handle the port.
40 */
41#include <fs/nfs/nfsport.h>
42#include <netinet/if_ether.h>
43#include <net/if_types.h>

--- 930 unchanged lines hidden (view full) ---

974 * Copy NFS uid, gids from the cred structure.
975 */
976void
977newnfs_copyincred(struct ucred *cr, struct nfscred *nfscr)
978{
979 int i;
980
981 nfscr->nfsc_uid = cr->cr_uid;
36
37/*
38 * generally, I don't like #includes inside .h files, but it seems to
39 * be the easiest way to handle the port.
40 */
41#include <fs/nfs/nfsport.h>
42#include <netinet/if_ether.h>
43#include <net/if_types.h>

--- 930 unchanged lines hidden (view full) ---

974 * Copy NFS uid, gids from the cred structure.
975 */
976void
977newnfs_copyincred(struct ucred *cr, struct nfscred *nfscr)
978{
979 int i;
980
981 nfscr->nfsc_uid = cr->cr_uid;
982 nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, RPCAUTH_UNIXGIDS + 1);
982 nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, NFS_MAXGRPS + 1);
983 for (i = 0; i < nfscr->nfsc_ngroups; i++)
984 nfscr->nfsc_groups[i] = cr->cr_groups[i];
985}
986
987
988/*
989 * Do any client specific initialization.
990 */

--- 279 unchanged lines hidden ---
983 for (i = 0; i < nfscr->nfsc_ngroups; i++)
984 nfscr->nfsc_groups[i] = cr->cr_groups[i];
985}
986
987
988/*
989 * Do any client specific initialization.
990 */

--- 279 unchanged lines hidden ---