Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107552328
D41423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41423.diff
View Options
diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c
--- a/usr.bin/iscsictl/iscsictl.c
+++ b/usr.bin/iscsictl/iscsictl.c
@@ -709,20 +709,20 @@
usage(void)
{
- fprintf(stderr, "usage: iscsictl -A -p portal -t target "
+ xo_error("usage: iscsictl -A -p portal -t target "
"[-u user -s secret] [-w timeout] [-e on | off]\n");
- fprintf(stderr, " iscsictl -A -d discovery-host "
+ xo_error(" iscsictl -A -d discovery-host "
"[-u user -s secret] [-e on | off]\n");
- fprintf(stderr, " iscsictl -A -a [-c path]\n");
- fprintf(stderr, " iscsictl -A -n nickname [-c path]\n");
- fprintf(stderr, " iscsictl -M -i session-id [-p portal] "
+ xo_error(" iscsictl -A -a [-c path]\n");
+ xo_error(" iscsictl -A -n nickname [-c path]\n");
+ xo_error(" iscsictl -M -i session-id [-p portal] "
"[-t target] [-u user] [-s secret] [-e on | off]\n");
- fprintf(stderr, " iscsictl -M -i session-id -n nickname "
+ xo_error(" iscsictl -M -i session-id -n nickname "
"[-c path]\n");
- fprintf(stderr, " iscsictl -R [-p portal] [-t target]\n");
- fprintf(stderr, " iscsictl -R -a\n");
- fprintf(stderr, " iscsictl -R -n nickname [-c path]\n");
- fprintf(stderr, " iscsictl -L [-v] [-w timeout]\n");
+ xo_error(" iscsictl -R [-p portal] [-t target]\n");
+ xo_error(" iscsictl -R -a\n");
+ xo_error(" iscsictl -R -n nickname [-c path]\n");
+ xo_error(" iscsictl -L [-v] [-w timeout]\n");
exit(1);
}
@@ -743,8 +743,8 @@
struct target *targ;
argc = xo_parse_args(argc, argv);
- if (argc < 0)
- exit(1);
+ if (argc < 0)
+ exit(1);
xo_set_version(ISCSICTL_XO_VERSION);
xo_open_container("iscsictl");
@@ -1052,10 +1052,11 @@
xo_err(1, "close");
xo_close_container("iscsictl");
- xo_finish();
+ if (xo_finish() < 0)
+ xo_err(1, "stdout");
if (failed != 0)
- return (1);
+ exit(1);
- return (0);
+ exit(0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 7:33 PM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15828481
Default Alt Text
D41423.diff (1 KB)
Attached To
Mode
D41423: iscsictl: Return non-zero status on write failure.
Attached
Detach File
Event Timeline
Log In to Comment