projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merged lp:~mvo/apt/hash-order
[apt.git]
/
test
/
interactive-helper
/
extract-control.cc
diff --git
a/test/interactive-helper/extract-control.cc
b/test/interactive-helper/extract-control.cc
index a1b3600aad922662c9568cdb73da30560609a644..3f7feabcba95b52902236feffd603a8df37b1dfe 100644
(file)
--- a/
test/interactive-helper/extract-control.cc
+++ b/
test/interactive-helper/extract-control.cc
@@
-21,8
+21,7
@@
bool ExtractMember(const char *File,const char *Member)
if (Extract.Control == 0)
return true;
- write(STDOUT_FILENO,Extract.Control,Extract.Length);
- return true;
+ return write(STDOUT_FILENO,Extract.Control,Extract.Length) != -1;
}
int main(int argc, const char *argv[])