1/*
2 * Copyright (c) 1992, 1993, 1994
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
--- 134 unchanged lines hidden (view full) ---
143{
144 register int c;
145 register struct nfs_args *nfsargsp;
146 struct nfs_args nfsargs;
147 struct nfsd_cargs ncd;
148 int mntflags, i, nfssvc_flag, num;
149 char *name, *p, *spec;
150 int error = 0;
151#ifdef KERBEROS
152 uid_t last_ruid;
153#endif
154
155#ifdef KERBEROS
156 last_ruid = -1;
157 (void)strcpy(realm, KRB_REALM);
158#endif
--- 130 unchanged lines hidden (view full) ---
289 if (argc != 2)
290 error = 1;
291
292 spec = *argv++;
293 name = *argv;
294
295 if (!getnfsargs(spec, nfsargsp))
296 exit(1);
297 if (mount(MOUNT_NFS, name, mntflags, nfsargsp))
298 err(1, "%s", name);
299 if (nfsargsp->flags & (NFSMNT_NQNFS | NFSMNT_KERB)) {
300 if ((opflags & ISBGRND) == 0) {
301 if (i = fork()) {
302 if (i == -1)
303 err(1, "nqnfs 1");
304 exit(0);
305 }
--- 247 unchanged lines hidden ---
2 * Copyright (c) 1992, 1993, 1994
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
--- 134 unchanged lines hidden (view full) ---
143{
144 register int c;
145 register struct nfs_args *nfsargsp;
146 struct nfs_args nfsargs;
147 struct nfsd_cargs ncd;
148 int mntflags, i, nfssvc_flag, num;
149 char *name, *p, *spec;
150 int error = 0;
151#ifdef KERBEROS
152 uid_t last_ruid;
153#endif
154
155#ifdef KERBEROS
156 last_ruid = -1;
157 (void)strcpy(realm, KRB_REALM);
158#endif
--- 130 unchanged lines hidden (view full) ---
289 if (argc != 2)
290 error = 1;
291
292 spec = *argv++;
293 name = *argv;
294
295 if (!getnfsargs(spec, nfsargsp))
296 exit(1);
297 if (mount(MOUNT_NFS, name, mntflags, nfsargsp))
298 err(1, "%s", name);
299 if (nfsargsp->flags & (NFSMNT_NQNFS | NFSMNT_KERB)) {
300 if ((opflags & ISBGRND) == 0) {
301 if (i = fork()) {
302 if (i == -1)
303 err(1, "nqnfs 1");
304 exit(0);
305 }
--- 247 unchanged lines hidden ---