2
## 05_default_conf.dpatch by <kyle@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16
-patch) patch -p1 ${patch_opts} < $0;;
17
-unpatch) patch -R -p1 ${patch_opts} < $0;;
19
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
26
diff -urNad wpasupplicant-0.3.1/wpa_supplicant.c /tmp/dpep.aNiCdz/wpasupplicant-0.3.1/wpa_supplicant.c
27
--- wpasupplicant-0.3.1/wpa_supplicant.c 2004-12-16 12:43:04.000000000 -0500
28
+++ /tmp/dpep.aNiCdz/wpasupplicant-0.3.1/wpa_supplicant.c 2004-12-16 12:52:28.000000000 -0500
30
struct wpa_ssid *ssid,
31
u8 *wpa_ie, int *wpa_ie_len);
33
+static const char *default_conf = "/etc/wpa_supplicant.conf";
35
extern int wpa_debug_level;
36
extern int wpa_debug_show_keys;
37
@@ -1677,6 +1678,10 @@
41
+ if (confname == NULL) {
42
+ confname = default_conf;
46
wpa_s->confname = rel2abs_path(confname);
47
if (wpa_s->confname == NULL) {