X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fnoop.c;h=e9b62706fd152b5a3cec98a22e0f0b40075369cc;hb=410e1914f1e53a812bcbb4601c90b9506f98ace1;hp=fb3acbdd33d7e4f13b39ab3dddf8a4509e605521;hpb=94a044f90357edefa6f4ae9f0b1d5885b0e34aee;p=debian%2Famanda diff --git a/client-src/noop.c b/client-src/noop.c index fb3acbd..e9b6270 100644 --- a/client-src/noop.c +++ b/client-src/noop.c @@ -65,6 +65,7 @@ main( signal(SIGPIPE, SIG_IGN); safe_fd(-1, 0); + openbsd_fd_inform(); check_running_as(RUNNING_AS_CLIENT_LOGIN); @@ -81,7 +82,7 @@ main( amfree(our_feature_string); am_release_feature_set(our_features); our_features = NULL; - if (fullwrite(1, options, strlen(options)) < 0) { + if (full_write(1, options, strlen(options)) < strlen(options)) { error(_("error sending noop response: %s"), strerror(errno)); /*NOTREACHED*/ }