leave user backup in groups disk and tape on purge in case sys admin has
[debian/amanda] / client-src / client_util.c
index ef28c1a87ed0e881a69b9d76e2fb569cf97d0e2e..3c82cf44be33a6c34ab33c5f263ae647f9069d1d 100644 (file)
@@ -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",