Deleted Added
full compact
fixmount.c (38500) fixmount.c (41145)
1/*
2 * Copyright (c) 1997-1998 Erez Zadok
3 * Copyright (c) 1990 Jan-Simon Pendry
4 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5 * Copyright (c) 1990 The Regents of the University of California.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * %W% (Berkeley) %G%
40 *
1/*
2 * Copyright (c) 1997-1998 Erez Zadok
3 * Copyright (c) 1990 Jan-Simon Pendry
4 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5 * Copyright (c) 1990 The Regents of the University of California.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * %W% (Berkeley) %G%
40 *
41 * $Id: fixmount.c,v 1.1.1.1 1998/08/23 22:07:20 obrien Exp $
41 * $Id: fixmount.c,v 1.2 1998/08/23 22:52:08 obrien Exp $
42 *
43 */
44
45#ifdef HAVE_CONFIG_H
46# include <config.h>
47#endif /* HAVE_CONFIG_H */
48#include <am_defs.h>
49

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

349
350 if (!*thishost) {
351 struct hostent *he;
352
353 if (gethostname(thishost, sizeof(thishost)) < 0) {
354 perror("gethostname");
355 exit(1);
356 }
42 *
43 */
44
45#ifdef HAVE_CONFIG_H
46# include <config.h>
47#endif /* HAVE_CONFIG_H */
48#include <am_defs.h>
49

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

349
350 if (!*thishost) {
351 struct hostent *he;
352
353 if (gethostname(thishost, sizeof(thishost)) < 0) {
354 perror("gethostname");
355 exit(1);
356 }
357 thishost[sizeof(thishost) - 1] = '\0';
357 thishost[sizeof(thishost) - 1] = '\0';
358
359 /*
360 * We need the hostname as it appears to the other side's
361 * mountd, so get our own hostname by reverse address
362 * resolution.
363 */
364 if (!(he = gethostbyname(thishost))) {
365 fprintf(stderr, "gethostbyname failed on %s\n",

--- 248 unchanged lines hidden ---
358
359 /*
360 * We need the hostname as it appears to the other side's
361 * mountd, so get our own hostname by reverse address
362 * resolution.
363 */
364 if (!(he = gethostbyname(thishost))) {
365 fprintf(stderr, "gethostbyname failed on %s\n",

--- 248 unchanged lines hidden ---