clone #316606 -1
reassign -1 aptitude
found -1 0.2.15.9-6
severity -1 normal
retitle -1 should not loop indefinetely if it doesn't like the input
thanks

On Sat, Jul 02, 2005 at 04:21:52PM +0200, Ola Lundqvist wrote:
> I actually think this is a bug in aptitude as it do not honor the
> environment variables that is set to make it work in non-interactive
> mode.

Agreed.

Cloning the bug to aptitude.

> On Sat, Jul 02, 2005 at 10:02:42AM +0200, Miernik wrote:
> > With APTCOMMAND=/usr/bin/aptitude and new aptitude 0.2.15.9-3 it creates
> > a temp file which fills up partition on which /tmp is completely, with a
> > file like this:
> > 
> > 
> > szrenica:~# head -n 25 /tmp/cron-apt.kujzsA/temp
> > CRON-APT LINE: dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
> > Reading package lists... Done
> > Building dependency tree
> > Reading extended state information
> > Initializing package states... Done
> > The following packages have been kept back:
> >   libdirectfb-bin libdirectfb-dev libdirectfb-extra xterm
> > The following packages will be upgraded:
> >   elinks grep ion3 ion3-doc libhal-storage0 libhal0 net-tools
> > 7 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
> > Need to get 7230kB of archives. After unpacking 4096B will be used.
> > WARNING: untrusted versions of the following packages will be installed!
> > 
> > Untrusted packages could compromise your system's security.
> > You should only proceed with the installation if you are certain that
> > this is what you want to do.
> > 
> >   elinks
> > 
> > Do you want to ignore this warning and proceed anyway?
> > To continue, enter "Yes"; to abort, enter "No": Unrecognized input.  Enter 
> > either "Yes" or "No".
> > Do you want to ignore this warning and proceed anyway?
> > To continue, enter "Yes"; to abort, enter "No": Unrecognized input.  Enter 
> > either "Yes" or "No".
> > Do you want to ignore this warning and proceed anyway?
> > To continue, enter "Yes"; to abort, enter "No": Unrecognized input.  Enter 
> > either "Yes" or "No".
> > 
> > 
> > 
> > And these lines "Do you want to ... To continue ..." go on indefinetly
> > in this file.

... eventually filling up the file system.

aptitude should more gracefully handle the issue of unwanted/illegal
input. Instead of looping indefinetely, it should probably abort after
a few hundred iterations.

Additionally, it should not try reading input from a standard input
which immediately returns EOF:
$ < /dev/null sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
The following packages will be upgraded:
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
  module-init-tools
4 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 109kB of archives. After unpacking 4096B will be freed.
Do you want to continue? [Y/n/?] 

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to