mountd.c (74853402238d0eafe83b7979b97772987211b6e8) mountd.c (ab845347721a9262f65cfc86c69d0b4ff0433ec6)
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

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

40 The Regents of the University of California. All rights reserved.\n";
41#endif /*not lint*/
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
46#endif
47static const char rcsid[] =
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

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

40 The Regents of the University of California. All rights reserved.\n";
41#endif /*not lint*/
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
46#endif
47static const char rcsid[] =
48 "$Id$";
48 "$Id: mountd.c,v 1.32 1998/07/15 06:21:40 charnier Exp $";
49#endif /*not lint*/
50
51#include <sys/param.h>
52#include <sys/mount.h>
53#include <sys/stat.h>
54#include <sys/syslog.h>
55#include <sys/sysctl.h>
56

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

487 sigprocmask(SIG_UNBLOCK, &sighup_mask, NULL);
488 return;
489 case RPCMNT_DUMP:
490 if (!svc_sendreply(transp, xdr_mlist, (caddr_t)NULL))
491 syslog(LOG_ERR, "can't send reply");
492 else if (log)
493 syslog(LOG_NOTICE,
494 "dump request succeeded from %s",
49#endif /*not lint*/
50
51#include <sys/param.h>
52#include <sys/mount.h>
53#include <sys/stat.h>
54#include <sys/syslog.h>
55#include <sys/sysctl.h>
56

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

487 sigprocmask(SIG_UNBLOCK, &sighup_mask, NULL);
488 return;
489 case RPCMNT_DUMP:
490 if (!svc_sendreply(transp, xdr_mlist, (caddr_t)NULL))
491 syslog(LOG_ERR, "can't send reply");
492 else if (log)
493 syslog(LOG_NOTICE,
494 "dump request succeeded from %s",
495 inet_ntoa(saddrin), dirpath);
495 inet_ntoa(saddrin));
496 return;
497 case RPCMNT_UMOUNT:
498 if (sport >= IPPORT_RESERVED && resvport_only) {
499 syslog(LOG_NOTICE,
500 "umount request from %s from unprivileged port",
501 inet_ntoa(saddrin));
502 svcerr_weakauth(transp);
503 return;

--- 1708 unchanged lines hidden ---
496 return;
497 case RPCMNT_UMOUNT:
498 if (sport >= IPPORT_RESERVED && resvport_only) {
499 syslog(LOG_NOTICE,
500 "umount request from %s from unprivileged port",
501 inet_ntoa(saddrin));
502 svcerr_weakauth(transp);
503 return;

--- 1708 unchanged lines hidden ---