Deleted Added
full compact
vfs_syscalls.c (51138) vfs_syscalls.c (51649)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
39 * $FreeBSD: head/sys/kern/vfs_syscalls.c 51138 1999-09-11 00:46:08Z alfred $
39 * $FreeBSD: head/sys/kern/vfs_syscalls.c 51649 1999-09-25 14:14:21Z phk $
40 */
41
42/* For 4.3 integer FS ID compatibility */
43#include "opt_compat.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/buf.h>

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

905 if (error)
906 return (error);
907 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
908 SCARG(uap, path), p);
909 if ((error = change_dir(&nd, p)) != 0)
910 return (error);
911 vrele(fdp->fd_rdir);
912 fdp->fd_rdir = nd.ni_vp;
40 */
41
42/* For 4.3 integer FS ID compatibility */
43#include "opt_compat.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/buf.h>

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

905 if (error)
906 return (error);
907 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
908 SCARG(uap, path), p);
909 if ((error = change_dir(&nd, p)) != 0)
910 return (error);
911 vrele(fdp->fd_rdir);
912 fdp->fd_rdir = nd.ni_vp;
913 if (!fdp->fd_jdir) {
914 fdp->fd_jdir = nd.ni_vp;
915 VREF(fdp->fd_jdir);
916 }
913 return (0);
914}
915
916/*
917 * Common routine for chroot and chdir.
918 */
919static int
920change_dir(ndp, p)

--- 2501 unchanged lines hidden ---
917 return (0);
918}
919
920/*
921 * Common routine for chroot and chdir.
922 */
923static int
924change_dir(ndp, p)

--- 2501 unchanged lines hidden ---