After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611891 - Correct return values on error for programs
Correct return values on error for programs
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-05 11:27 UTC by Bastien Nocera
Modified: 2010-03-05 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Correct return values on error for programs (4.64 KB, patch)
2010-03-05 11:27 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2010-03-05 11:27:54 UTC
Makes it easier to use them in shell scripts.
Comment 1 Bastien Nocera 2010-03-05 11:27:56 UTC
Created attachment 155297 [details] [review]
Correct return values on error for programs

Most of those programs would return 0 even on error. They
should instead return 1 when an error occurred.
Comment 2 Bastien Nocera 2010-03-05 16:12:53 UTC
Attachment 155297 [details] pushed as 96e9f4b - Correct return values on error for programs