diff options
author | Daniel Hartwig <mandyke@gmail.com> | 2012-03-16 16:56:35 +0800 |
---|---|---|
committer | Daniel Hartwig <mandyke@gmail.com> | 2012-03-16 16:56:35 +0800 |
commit | f8191add22b781b4453b95d2c02c890214f1f57a (patch) | |
tree | 824030a1e9ec92ad9c9573caf8b7f7bd5a7fe5e1 /src/cmdline | |
parent | ef0cbd6afba33b791f8564b12d1fb14a3d18cac1 (diff) | |
download | aptitude-f8191add22b781b4453b95d2c02c890214f1f57a.tar.gz |
Apply patch from Ubuntu to build -D_FORTIFY_SOURCE=2 errors
Thanks: Colin Watson
Thanks: Michael Vogt
Closes: #497539
Diffstat (limited to 'src/cmdline')
-rw-r--r-- | src/cmdline/cmdline_changelog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmdline/cmdline_changelog.cc b/src/cmdline/cmdline_changelog.cc index 53e6faf7..3dd70362 100644 --- a/src/cmdline/cmdline_changelog.cc +++ b/src/cmdline/cmdline_changelog.cc @@ -425,7 +425,8 @@ void do_cmdline_changelog(const vector<string> &packages, _error->Error(_("Couldn't find a changelog for %s"), input.c_str()); else // Run the user's pager. - system((string(pager) + " " + filename.get_name()).c_str()); + if(system((string(pager) + " " + filename.get_name()).c_str()) != 0) + _error->Error(_("Couldn't run pager %s"), pager); } _error->DumpErrors(); |