Deleted Added
full compact
mountd.c (349128) mountd.c (349457)
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 * Herb Hasler and Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

38
39#if 0
40#ifndef lint
41static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
42#endif /*not lint*/
43#endif
44
45#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 * Herb Hasler and Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

38
39#if 0
40#ifndef lint
41static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
42#endif /*not lint*/
43#endif
44
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: stable/11/usr.sbin/mountd/mountd.c 349128 2019-06-17 00:58:49Z rmacklem $");
46__FBSDID("$FreeBSD: stable/11/usr.sbin/mountd/mountd.c 349457 2019-06-27 14:12:20Z mav $");
47
48#include <sys/param.h>
49#include <sys/fcntl.h>
50#include <sys/linker.h>
51#include <sys/module.h>
52#include <sys/mount.h>
53#include <sys/queue.h>
54#include <sys/stat.h>

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

344 srcptr++;
345 continue;
346 }
347 if (!quot && strchr(delim, *srcptr))
348 break;
349 *dstptr++ = *srcptr++;
350 }
351
47
48#include <sys/param.h>
49#include <sys/fcntl.h>
50#include <sys/linker.h>
51#include <sys/module.h>
52#include <sys/mount.h>
53#include <sys/queue.h>
54#include <sys/stat.h>

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

344 srcptr++;
345 continue;
346 }
347 if (!quot && strchr(delim, *srcptr))
348 break;
349 *dstptr++ = *srcptr++;
350 }
351
352 *dstptr = 0; /* Terminate the string */
353 *stringp = (*srcptr == '\0') ? NULL : srcptr + 1;
352 *stringp = (*srcptr == '\0') ? NULL : srcptr + 1;
353 *dstptr = 0; /* Terminate the string */
354 return (retval);
355}
356
357/*
358 * Mountd server for NFS mount protocol as described in:
359 * NFS: Network File System Protocol Specification, RFC1094, Appendix A
360 * The optional arguments are the exports file name
361 * default: _PATH_EXPORTS

--- 2974 unchanged lines hidden ---
354 return (retval);
355}
356
357/*
358 * Mountd server for NFS mount protocol as described in:
359 * NFS: Network File System Protocol Specification, RFC1094, Appendix A
360 * The optional arguments are the exports file name
361 * default: _PATH_EXPORTS

--- 2974 unchanged lines hidden ---