summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorChristian PERRIER <bubulle@debian.org>2013-08-10 12:51:49 +0200
committerChristian PERRIER <bubulle@debian.org>2013-08-10 12:51:49 +0200
commit111f8cd9fccc0ebd8f8c5310a10343bc78569e81 (patch)
treeaa97c77d9d3b02730cf74c771cc43acb74a6cce9 /cmdline
parentde81d69704bc5103ca55032a8f009820f30624c7 (diff)
parentf52037d629aea696f938015e7f1ec037eb079af8 (diff)
Merge branch 'debian/sid' of git://git.debian.org/git/apt/apt into debian/sid
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cdrom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index c153cca85..545edf439 100644
--- a/cmdline/apt-cdrom.cc
+++ b/cmdline/apt-cdrom.cc
@@ -66,7 +66,8 @@ void pkgCdromTextStatus::Prompt(const char *Text)
{
char C;
cout << Text << ' ' << flush;
- read(STDIN_FILENO,&C,1);
+ if (read(STDIN_FILENO,&C,1) < 0)
+ _error->Errno("pkgCdromTextStatus::Prompt", "failed to prompt");
if (C != '\n')
cout << endl;
}