Changeset 29e7cc7 in mainline for uspace/srv/system/system.c


Ignore:
Timestamp:
2025-04-18T15:14:10Z (3 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
e77c3ed
Parents:
800d188 (diff), 25fdb2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'upstream/master' into helenraid

File:
1 edited

Legend:

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

    r800d188 r29e7cc7  
    328328        size_t nparts;
    329329        bool sv_mounted;
     330        futil_t *futil = NULL;
    330331        size_t i;
    331332        errno_t rc;
     
    380381
    381382                /* Copy initial configuration files */
    382                 rc = futil_rcopy_contents("/cfg", "/w/cfg");
     383                rc = futil_create(NULL, NULL, &futil);
    383384                if (rc != EOK)
    384385                        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;
    385393        } else {
    386394                printf("%s: System volume is configured.\n", NAME);
     
    429437        if (part_ids != NULL)
    430438                free(part_ids);
     439        if (futil != NULL)
     440                futil_destroy(futil);
    431441
    432442        return rc;
Note: See TracChangeset for help on using the changeset viewer.