Summary: | pk-command-not-found should default to return 127 | ||
---|---|---|---|
Product: | PackageKit | Reporter: | Dan Nicholson <dbn.lists> |
Component: | General | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED NOTABUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | [PATCH] cnf: Default to exit code 127 for command not found |
Description
Dan Nicholson
2012-02-03 08:51:34 UTC
Created attachment 56581 [details] [review] [PATCH] cnf: Default to exit code 127 for command not found The only way success should be returned is if there was no input or if the command was installed and run successfully. All other exit paths should return the shell's command not found code of 127. --- contrib/command-not-found/pk-command-not-found.c | 23 +++++---------------- 1 files changed, 6 insertions(+), 17 deletions(-) Patch was tested on 0.6.21. The only conflict forward porting to master was egg_strlen vs strlen. We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.