[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#198759: FWD: Re: Bug#198759: base-config: /usr/sbin/apt-setup may kill /dev/cdrom symlink



----- Forwarded message from "Nikita V. Youshchenko" <yoush@cs.msu.su> -----

From: "Nikita V. Youshchenko" <yoush@cs.msu.su>
Date: Fri, 27 Jun 2003 08:27:20 +0400
To: Joey Hess <joeyh@debian.org>
Subject: Re: Bug#198759: base-config: /usr/sbin/apt-setup may kill /dev/cdrom symlink
X-Spam-Status: No, hits=-9.4 required=5.0
	tests=AWL,BAYES_10,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      REPLY_WITH_QUOTES,USER_AGENT_KMAIL
	version=2.55


> Nikita V. Youshchenko wrote:
> > /usr/sbin/apt-setup script contains the following code:
> >
> > ...
> >                  if [ "$CDDEV" -a "$CDDEV" != '/dev/cdrom' ]; then
> >                         ln -sf $CDDEV /dev/cdrom
> >                  fi
> > ...
> >
> > At this point, $CDDEV is just read from debconf and may contain
> > invalid data. It is not guaranteed that user will lately enter valid
> > data, e.g. because he is asked only limited number of times. So link
> > may become broken. In fact, this happened here.
>
> So you entered a wrong device five times and went through the loop five
> times?

Well, I agree it is not the normal case :)

I was testing my own custom installer that uses (somewhat modified version 
of) base-config, and doing different silly things to see what will 
happen. So I found this issue, and thought that it may raise in 
unmodified version also (like other issues I recently reported on 
base-config).

Maybe, when /usr/sbin/base-config is started manually, user may press 
<Ctrl-C> after entering invalid data once, and symlink will be left 
broken.

On the other hand, it will be absolutely harmless to create the link 
several lines later, after successful mount, when it is guaranteed that 
data is valid.


----- End forwarded message -----

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: