vfs_extattr.c (a8d43c90af5122ecff75b55fbaf6d5806674411b) vfs_extattr.c (7c89f162bcb645d2fdb234883fb689ed896077a2)
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.

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

680 cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT;
681 NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td);
682 td->td_dupfd = -indx - 1; /* XXX check for fdopen */
683 /*
684 * Bump the ref count to prevent another process from closing
685 * the descriptor while we are blocked in vn_open()
686 */
687 fhold(fp);
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.

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

680 cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT;
681 NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td);
682 td->td_dupfd = -indx - 1; /* XXX check for fdopen */
683 /*
684 * Bump the ref count to prevent another process from closing
685 * the descriptor while we are blocked in vn_open()
686 */
687 fhold(fp);
688 error = vn_open(&nd, &flags, cmode);
688 error = vn_open(&nd, &flags, cmode, -1);
689 if (error) {
690 /*
691 * release our own reference
692 */
693 fdrop(fp, td);
694
695 /*
696 * handle special fdopen() case. bleh. dupfdopen() is

--- 3790 unchanged lines hidden ---
689 if (error) {
690 /*
691 * release our own reference
692 */
693 fdrop(fp, td);
694
695 /*
696 * handle special fdopen() case. bleh. dupfdopen() is

--- 3790 unchanged lines hidden ---