~ubuntu-branches/ubuntu/trusty/dhcpcd/trusty-security

« back to all changes in this revision

Viewing changes to pathnames.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon Kelley
  • Date: 2005-09-30 02:21:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050930022151-vq3xlcazj0bdpyf4
Tags: 1:2.0.0-2
Clear out /etc/dhcpc/resolv.conf and /var/lib/dhcpc/* 
during purge. (closes: #330515)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * dhcpcd - DHCP client daemon -
3
 
 * Copyright (C) 1996 - 1997 Yoichi Hariguchi <yoichi@fore.com>
4
 
 * Copyright (C) 1998 Sergei Viznyuk <sv@phystech.com>
5
 
 *
6
 
 * Dhcpcd is an RFC2131 and RFC1541 compliant DHCP client daemon.
7
 
 *
8
 
 * This is free software; you can redistribute it and/or modify it
9
 
 * under the terms of the GNU General Public License as published by
10
 
 * the Free Software Foundation; either version 2 of the License, or
11
 
 * (at your option) any later version.
12
 
 *
13
 
 * This program is distributed in the hope that it will be useful, but
14
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
 
 * See the GNU General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU General Public License
19
 
 * along with this program; if not, write to the Free Software
20
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
 
 */
22
 
 
23
 
#ifndef PATHNAMES_H
24
 
#define PATHNAMES_H
25
 
 
26
 
#include <paths.h>
27
 
#include "dhcpcd.h"
28
 
 
29
 
#define PID_FILE_PATH           "%.0s/var/run/"PROGRAM_NAME"-%s.pid"
30
 
#define DHCP_CACHE_FILE         "%s/"PROGRAM_NAME"-%s.cache"
31
 
#define DHCP_HOSTINFO           "%s/"PROGRAM_NAME"-%s.info"
32
 
#define EXEC_ON_CHANGE          "%.0s/etc/dhcpc/"PROGRAM_NAME".exe"
33
 
 
34
 
#ifdef EMBED
35
 
#define CONFIG_DIR              "/etc/config/dhcpc"
36
 
#define RESOLV_CONF             "/etc/config/resolv.conf"
37
 
#define NIS_CONF                "/etc/config/yp.conf"
38
 
#define NTP_CONF                "/etc/config/ntp.conf"
39
 
#else
40
 
#define CONFIG_DIR              "/var/lib/dhcpc"
41
 
#define RESOLV_CONF             "/etc/resolv.conf"
42
 
#define NIS_CONF                "/etc/yp.conf"
43
 
#define NTP_CONF                "/etc/ntp.conf"
44
 
#endif
45
 
 
46
 
#endif