X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fclient_util.c;h=3c82cf44be33a6c34ab33c5f263ae647f9069d1d;hb=c489fc6ad53e4658722b7f63fb40edc6f53c57a9;hp=ef28c1a87ed0e881a69b9d76e2fb569cf97d0e2e;hpb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;p=debian%2Famanda diff --git a/client-src/client_util.c b/client-src/client_util.c index ef28c1a..3c82cf4 100644 --- a/client-src/client_util.c +++ b/client-src/client_util.c @@ -857,7 +857,7 @@ backup_support_option( } amfree(line); } - aclose(supportout); + fclose(streamout); streamerr = fdopen(supporterr, "r"); if (!streamerr) { error(_("Error opening pipe to child: %s"), strerror(errno)); @@ -870,7 +870,7 @@ backup_support_option( } amfree(bsu); } - aclose(supporterr); + fclose(streamerr); if (waitpid(supportpid, &status, 0) < 0) { err = vstrallocf(_("waitpid failed: %s"), strerror(errno)); @@ -1006,7 +1006,7 @@ run_client_script( if (BSTRNCMP(line, "PROPERTY ") == 0) { char *property_name, *property_value; property_name = line + 9; - property_value = index(property_name,' '); + property_value = strchr(property_name,' '); if (property_value == NULL) { char *msg = g_strdup_printf( "ERROR %s: Bad output property: %s",