Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/system/system.c

    ra188131 r77a0119  
    328328        size_t nparts;
    329329        bool sv_mounted;
    330         futil_t *futil = NULL;
    331330        size_t i;
    332331        errno_t rc;
     
    381380
    382381                /* Copy initial configuration files */
    383                 rc = futil_create(NULL, NULL, &futil);
     382                rc = futil_rcopy_contents("/cfg", "/w/cfg");
    384383                if (rc != EOK)
    385384                        goto error;
    386 
    387                 rc = futil_rcopy_contents(futil, "/cfg", "/w/cfg");
    388                 if (rc != EOK)
    389                         goto error;
    390 
    391                 futil_destroy(futil);
    392                 futil = NULL;
    393385        } else {
    394386                printf("%s: System volume is configured.\n", NAME);
     
    437429        if (part_ids != NULL)
    438430                free(part_ids);
    439         if (futil != NULL)
    440                 futil_destroy(futil);
    441431
    442432        return rc;
Note: See TracChangeset for help on using the changeset viewer.