summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-02-11 19:46:52 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-02-11 19:46:52 +0100
commit5834d7a103cb8b68cd6eb072b4b789ca679a2d71 (patch)
tree018b686cddb2d8fde0327d83f57e6c7cd394b2fb /cmdline
parent5eb9a474dca2f48a935c234357c3adc9b372423e (diff)
fix the hold-testcase as it has problems with 'foreign' operations
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-mark.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-mark.cc b/cmdline/apt-mark.cc
index fa4134a20..ef4331714 100644
--- a/cmdline/apt-mark.cc
+++ b/cmdline/apt-mark.cc
@@ -280,8 +280,8 @@ bool DoHold(CommandLine &CmdL)
if (chrootDir != "/" && chroot(chrootDir.c_str()) != 0)
_error->WarningE("getArchitecture", "Couldn't chroot into %s for dpkg --set-selections", chrootDir.c_str());
int const nullfd = open("/dev/null", O_RDONLY);
- dup2(nullfd, STDIN_FILENO);
- dup2(external[0], STDOUT_FILENO);
+ dup2(external[0], STDIN_FILENO);
+ dup2(nullfd, STDOUT_FILENO);
dup2(nullfd, STDERR_FILENO);
execvp(Args[0], (char**) &Args[0]);
_error->WarningE("dpkgGo", "Can't detect if dpkg supports multi-arch!");