Deleted Added
full compact
systems.c (46686) systems.c (46828)
1/*
2 * System configuration routines
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
1/*
2 * System configuration routines
3 *
4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
5 *
6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the Internet Initiative Japan, Inc. The name of the
14 * IIJ may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 * $Id: systems.c,v 1.42 1999/03/09 20:39:03 brian Exp $
20 * $Id: systems.c,v 1.43 1999/05/08 11:07:43 brian Exp $
21 *
22 * TODO:
23 */
24#include <sys/param.h>
25
26#include <ctype.h>
27#include <pwd.h>
28#include <stdio.h>

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

48 snprintf(line, sizeof line, "%s/%s", _PATH_PPP, file);
49 fp = ID0fopen(line, "r");
50 if (fp == NULL)
51 log_Printf(LogWARN, "OpenSecret: Can't open %s.\n", line);
52 return (fp);
53}
54
55void
21 *
22 * TODO:
23 */
24#include <sys/param.h>
25
26#include <ctype.h>
27#include <pwd.h>
28#include <stdio.h>

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

48 snprintf(line, sizeof line, "%s/%s", _PATH_PPP, file);
49 fp = ID0fopen(line, "r");
50 if (fp == NULL)
51 log_Printf(LogWARN, "OpenSecret: Can't open %s.\n", line);
52 return (fp);
53}
54
55void
56CloseSecret(FILE * fp)
56CloseSecret(FILE *fp)
57{
58 fclose(fp);
59}
60
61/* Move string from ``from'' to ``to'', interpreting ``~'' and $.... */
62static void
63InterpretArg(char *from, char *to)
64{

--- 344 unchanged lines hidden ---
57{
58 fclose(fp);
59}
60
61/* Move string from ``from'' to ``to'', interpreting ``~'' and $.... */
62static void
63InterpretArg(char *from, char *to)
64{

--- 344 unchanged lines hidden ---