wvdial deletes link to /etc/resolvconf/run/resolv.conf and writes a permanent /etc/resolv.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wvdial (Debian) |
Fix Released
|
Unknown
|
|||
wvdial (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
Automatically imported from Debian bug report #288481 http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #2 |
Message-ID: <email address hidden>
Date: Tue, 4 Jan 2005 00:47:26 +0100 (MET)
From: "Malte Schmidt-Tychsen" <email address hidden>
To: <email address hidden>
Subject: wvdial deletes link to /etc/resolvconf
/etc/resolv.conf
Package: wvdial
Version: 1.54.0-1
Severity: serious
Hi there,
I played around a bit with my network connections. I have a pcmcia nic
connected to my home network with dhcp running on my fileserver. I used
webmin-wvdial to connect to the internet via a mobile phone via irda. I am
not sure when, but I removed the nic (which is managed by ifplugd, a debian
package to manage mobile nics) somewhere in the process to see if the
connection was really made over the mobile.
After I was done playing around I reinserted the nic and internet access
didn't come back automagically. So I did the ifup eth0 and got an error
message telling me that /etc/resolv.conf was no longer linked to
/etc/resolvconf
supplied by the server I connected to via wvdial, while
/etc/resolvconf
supplied by my dhcp.
I have to admit that I really stress tested the thing probabley removing and
reinserting the nic, which always drives ifplugd crazy, but under no
circumstances should wvdial ever delete the symbolic link and put up its own
/etc/resolv.conf. I am still not sure what or when it happened, so ifplugd
could still be the culprit, but the dns servers from wvdial were in
/etc/resolv.conf, which suggests that it was wvdial.
I am sorry that I can't provde further details at the moment, but since this
is such a severe bug (breaks all net access) I thought I should respond
ASAP.
Thanks,
Malte Schmidt-Tychsen
--
+++ GMX - die erste Adresse f�l, Message, More +++
1 GB Mailbox bereits in GMX FreeMail http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#3 |
If a program removes the symlink at /etc/resolv.conf then that is
certainly a bug in the program.
Looking at the wvdial source code, however, I can't see anything that
could do this.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #4 |
Message-Id: <1104904472.
Date: Wed, 05 Jan 2005 06:54:32 +0100
From: Thomas Hood <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: A bug, but not in wvdial, it seems
If a program removes the symlink at /etc/resolv.conf then that is
certainly a bug in the program.
Looking at the wvdial source code, however, I can't see anything that
could do this.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#5 |
Hi Thomas,
maybe I will try to reproduce it today. I used webmin-wvdial and the bug
could be located anywhere. webmin-wvdial, wvdial, ppp-tools, ifplugd ...
Even if I can reproduce it come to think of it I don't know how I would find
out what package caused this. Is there a tool that can check what programs
change/changed a file over a period of time and what was done?
For the curious I attached an output of dpkg -l, so anyone can take a wild
guess at what might have caused this. The result was there, though, I can
assure you of this.
So there was a policy violation that at least involved wvdial, since the
dialup dns servers were in that file that is not really supposed to exist.
Thx for looking at the code.
Malte
> If a program removes the symlink at /etc/resolv.conf then that is
> certainly a bug in the program.
>
> Looking at the wvdial source code, however, I can't see anything that
> could do this.
>
> --
> Thomas Hood <email address hidden>
>
>
--
_______
Malte Schmidt-Tychsen
Backbergstr. 4H
12359 Berlin
Tel.: +49 (0) 30 / 606 9454
-------
() ASCII Ribbon Campaign - against HTML email
/\
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#6 |
reassign 288481 webmin-wvdial
thanks
On Wed, 2005-01-05 at 11:56 +0100, Malte Schmidt-Tychsen wrote:
> maybe I will try to reproduce it today. I used webmin-wvdial and the bug
> could be located anywhere. webmin-wvdial, wvdial, ppp-tools, ifplugd ...
I have found the culprit: webmin-wvdial. The evil code is
in /usr/share/
$resolv_conf = "/etc/resolv.conf";
$ppp_
$save_
[...]
if ($connected && $autodns) {
# If the resolv.conf file has not been modified, and the PPP
# resolv.conf has, copy it into place
[...]
[...]
sub ppp_disconnect
{
[...]
# Restore the saved DNS config file, if it hasn't been done
[...]
if (!-l $resolv_conf && $ost[9] < time()-5 && -r $save_resolv_conf) {
if ($_[1] == 0) {
}
}
[...]
}
I don't know why webmin-wvdial tries to do this. If the user
wants /etc/resolv.conf to be a copy of /etc/ppp/
simply make the former a symlink to the latter.
More relevant to you and me, this code isn't compatible with resolvconf
which requires that /etc/resolv.conf remain a symlink
to /etc/resolvconf
Furthermore, the code is buggy. If /etc/resolv.conf is originally a
symlink then it won't be restored as a symlink. If /etc/ppp/
is originally a symlink then this code will delete it.
This whole "feature" should be commented out.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#7 |
# Automatically generated email from bts, devscripts version 2.8.5
retitle 288481 webmin-wvdial deletes symlink at /etc/resolv.conf
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #8 |
Message-Id: <1104935322.
Date: Wed, 05 Jan 2005 15:28:42 +0100
From: Thomas Hood <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Re: if there is nothing, you might as well close it
reassign 288481 webmin-wvdial
thanks
On Wed, 2005-01-05 at 11:56 +0100, Malte Schmidt-Tychsen wrote:
> maybe I will try to reproduce it today. I used webmin-wvdial and the bug
> could be located anywhere. webmin-wvdial, wvdial, ppp-tools, ifplugd ...
I have found the culprit: webmin-wvdial. The evil code is
in /usr/share/
$resolv_conf = "/etc/resolv.conf";
$ppp_
$save_
[...]
if ($connected && $autodns) {
# If the resolv.conf file has not been modified, and the PPP
# resolv.conf has, copy it into place
[...]
[...]
sub ppp_disconnect
{
[...]
# Restore the saved DNS config file, if it hasn't been done
[...]
if (!-l $resolv_conf && $ost[9] < time()-5 && -r $save_resolv_conf) {
if ($_[1] == 0) {
}
}
[...]
}
I don't know why webmin-wvdial tries to do this. If the user
wants /etc/resolv.conf to be a copy of /etc/ppp/
simply make the former a symlink to the latter.
More relevant to you and me, this code isn't compatible with resolvconf
which requires that /etc/resolv.conf remain a symlink
to /etc/resolvconf
Furthermore, the code is buggy. If /etc/resolv.conf is originally a
symlink then it won't be restored as a symlink. If /etc/ppp/
is originally a symlink then this code will delete it.
This whole "feature" should be commented out.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #9 |
Message-Id: <20050105143651
Date: Wed, 5 Jan 2005 15:36:51 +0100
From: Thomas Hood <email address hidden>
To: <email address hidden>
Subject: retitle 288481 to webmin-wvdial deletes symlink at /etc/resolv.conf
# Automatically generated email from bts, devscripts version 2.8.5
retitle 288481 webmin-wvdial deletes symlink at /etc/resolv.conf
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Matt Zimmerman (mdz) wrote : | #10 |
webmin-wvdial is in universe
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#11 |
I will soon release a new version of resolvconf that Conflicts with
webmin-wvdial. If the webmin-wvdial bug is ever fixed then I'll version
the Conflict.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #12 |
Message-Id: <1105139405.
Date: Sat, 08 Jan 2005 00:10:05 +0100
From: Thomas Hood <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: New release of resolvconf pending
I will soon release a new version of resolvconf that Conflicts with
webmin-wvdial. If the webmin-wvdial bug is ever fixed then I'll version
the Conflict.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#13 |
On Wed, Jan 05, 2005 at 03:28:42PM +0100, Thomas Hood wrote:
> I have found the culprit: webmin-wvdial. The evil code is
> in /usr/share/
[...]
> I don't know why webmin-wvdial tries to do this. If the user
> wants /etc/resolv.conf to be a copy of /etc/ppp/
> simply make the former a symlink to the latter.
>
> More relevant to you and me, this code isn't compatible with resolvconf
> which requires that /etc/resolv.conf remain a symlink
> to /etc/resolvconf
>
> Furthermore, the code is buggy. If /etc/resolv.conf is originally a
> symlink then it won't be restored as a symlink. If /etc/ppp/
> is originally a symlink then this code will delete it.
>
> This whole "feature" should be commented out.
I'm currently preparing a QA upload for the orphaned webmin-optional
package. Could you please take a look at the attached patch andtell
if you would consider it sufficient? I tried to take a less invasive
approach than completly removing the code since I don't want to
introduce too great change in behaviour in a QA upload.
Gruesse,
--
Frank Lichtenheld <email address hidden>
www: http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#14 |
# Automatically generated email from bts, devscripts version 2.8.5
tags 288481 patch
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #15 |
Message-Id: <email address hidden>
Date: Sat, 8 Jan 2005 15:01:58 +0100
From: Frank Lichtenheld <email address hidden>
To: <email address hidden>
Subject: tagging 288481
# Automatically generated email from bts, devscripts version 2.8.5
tags 288481 patch
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #16 |
Message-ID: <email address hidden>
Date: Sat, 8 Jan 2005 14:59:45 +0100
From: Frank Lichtenheld <email address hidden>
To: Thomas Hood <email address hidden>, <email address hidden>
Subject: Re: Bug#288481: if there is nothing, you might as well close it
--H8ygTp4AXg6deix2
Content-Type: text/plain; charset=us-ascii
Content-
On Wed, Jan 05, 2005 at 03:28:42PM +0100, Thomas Hood wrote:
> I have found the culprit: webmin-wvdial. The evil code is
> in /usr/share/
[...]
> I don't know why webmin-wvdial tries to do this. If the user
> wants /etc/resolv.conf to be a copy of /etc/ppp/
> simply make the former a symlink to the latter.
>
> More relevant to you and me, this code isn't compatible with resolvconf
> which requires that /etc/resolv.conf remain a symlink
> to /etc/resolvconf
>
> Furthermore, the code is buggy. If /etc/resolv.conf is originally a
> symlink then it won't be restored as a symlink. If /etc/ppp/
> is originally a symlink then this code will delete it.
>
> This whole "feature" should be commented out.
I'm currently preparing a QA upload for the orphaned webmin-optional
package. Could you please take a look at the attached patch andtell
if you would consider it sufficient? I tried to take a less invasive
approach than completly removing the code since I don't want to
introduce too great change in behaviour in a QA upload.
Gruesse,
--
Frank Lichtenheld <email address hidden>
www: http://
--H8ygTp4AXg6deix2
Content-Type: text/plain; charset=us-ascii
Content-
diff -Naur webmin-
--- webmin-
+++ webmin-
@@ -1,3 +1,19 @@
+webmin-optional (1.160-3) unstable; urgency=medium
+
+ * QA Upload
+ * webmin-wvdial: don't attempt to overwrite resolv.conf if it
+ is a symlink since this could break in many situations
+ (like when using resolvconf) (Closes: #288481) Also don't
+ attempt to delete the ppp specific resolv.conf, this isn't
+ our business. Pointed out by Thomas Hood.
+ * webmin-dhcpd: change dhcp-server to dhcp3-server in depends,
+ the former isn't available anymore (Closes: #260608)
+ * webmin-mysql: allow virtual-
+ to mysql-client as dependency. This allows to use mysql-client-4.1.
+ (Closes: #287128)
+
+ -- Frank Lichtenheld <email address hidden> Sat, 8 Jan 2005 14:47:01 +0100
+
webmin-optional (1.160-2) unstable; urgency=high
* I'm not here. This isn't happening.
diff -Naur webmin-
--- webmin-
+++ webmin-
@@ -49,7 +49,7 @@
Package: webmin-dhcpd
Architecture: all
Priority: optional
-Depends: webmin (>= 1.140), ${perl:Depends}, dhcp | dhcp-server
+Depends: webmin...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#17 |
On Sat, 2005-01-08 at 14:59 +0100, Frank Lichtenheld wrote:
> I'm currently preparing a QA upload for the orphaned webmin-optional
> package. Could you please take a look at the attached patch andtell
> if you would consider it sufficient? I tried to take a less invasive
> approach than completly removing the code since I don't want to
> introduce too great change in behaviour in a QA upload.
The patch looks OK. My only comment would be that you might want to put
the "-l $resolv_conf" test up higher since there may be no point to
executing the sleep(3), etc., if resolv.conf is not going to be updated
later anyway. E.g.,
- # If the resolv.conf file has not been modified, and the PPP
- # resolv.conf has, copy it into place
- while(1) {
+ # If the resolv.conf file has not been modified and is not
+ # a symlink, and the pppd-generated resolv.conf file has
+ # been modified, then copy the latter over the former
+ if (!-l $resolv_conf) while (1)
I haven't tested this.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #18 |
Message-Id: <1105199784.
Date: Sat, 08 Jan 2005 16:56:24 +0100
From: Thomas Hood <email address hidden>
To: Frank Lichtenheld <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#288481: if there is nothing, you might as well close it
On Sat, 2005-01-08 at 14:59 +0100, Frank Lichtenheld wrote:
> I'm currently preparing a QA upload for the orphaned webmin-optional
> package. Could you please take a look at the attached patch andtell
> if you would consider it sufficient? I tried to take a less invasive
> approach than completly removing the code since I don't want to
> introduce too great change in behaviour in a QA upload.
The patch looks OK. My only comment would be that you might want to put
the "-l $resolv_conf" test up higher since there may be no point to
executing the sleep(3), etc., if resolv.conf is not going to be updated
later anyway. E.g.,
- # If the resolv.conf file has not been modified, and the PPP
- # resolv.conf has, copy it into place
- while(1) {
+ # If the resolv.conf file has not been modified and is not
+ # a symlink, and the pppd-generated resolv.conf file has
+ # been modified, then copy the latter over the former
+ if (!-l $resolv_conf) while (1)
I haven't tested this.
--
Thomas Hood <email address hidden>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#19 |
On Sat, Jan 08, 2005 at 04:56:24PM +0100, Thomas Hood wrote:
> The patch looks OK. My only comment would be that you might want to put
> the "-l $resolv_conf" test up higher since there may be no point to
> executing the sleep(3), etc., if resolv.conf is not going to be updated
> later anyway. E.g.,
>
> - # If the resolv.conf file has not been modified, and the PPP
> - # resolv.conf has, copy it into place
> - while(1) {
> + # If the resolv.conf file has not been modified and is not
> + # a symlink, and the pppd-generated resolv.conf file has
> + # been modified, then copy the latter over the former
> + if (!-l $resolv_conf) while (1)
>
> I haven't tested this.
Good suggestion. Modified my patch and uploaded 1.160-3.
Gruesse,
--
Frank Lichtenheld <email address hidden>
www: http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#20 |
Source: webmin-optional
Source-Version: 1.160-3
We believe that the bug you reported is fixed in the latest version of
webmin-optional, which is due to be installed in the Debian FTP archive:
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #21 |
Message-ID: <email address hidden>
Date: Sat, 8 Jan 2005 18:55:45 +0100
From: Frank Lichtenheld <email address hidden>
To: Thomas Hood <email address hidden>, <email address hidden>
Subject: Re: Bug#288481: if there is nothing, you might as well close it
On Sat, Jan 08, 2005 at 04:56:24PM +0100, Thomas Hood wrote:
> The patch looks OK. My only comment would be that you might want to put
> the "-l $resolv_conf" test up higher since there may be no point to
> executing the sleep(3), etc., if resolv.conf is not going to be updated
> later anyway. E.g.,
>
> - # If the resolv.conf file has not been modified, and the PPP
> - # resolv.conf has, copy it into place
> - while(1) {
> + # If the resolv.conf file has not been modified and is not
> + # a symlink, and the pppd-generated resolv.conf file has
> + # been modified, then copy the latter over the former
> + if (!-l $resolv_conf) while (1)
>
> I haven't tested this.
Good suggestion. Modified my patch and uploaded 1.160-3.
Gruesse,
--
Frank Lichtenheld <email address hidden>
www: http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #22 |
Message-Id: <email address hidden>
Date: Sat, 08 Jan 2005 13:17:22 -0500
From: Frank Lichtenheld <email address hidden>
To: <email address hidden>
Subject: Bug#288481: fixed in webmin-optional 1.160-3
Source: webmin-optional
Source-Version: 1.160-3
We believe that the bug you reported is fixed in the latest version of
webmin-optional, which is due to be installed in the Debian FTP archive:
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to pool/main/
webmin-
to...
Changed in wvdial: | |
status: | Unknown → Fix Released |
Automatically imported from Debian bug report #288481 http:// bugs.debian. org/288481