VirtualBox

Changeset 1630 in kBuild for trunk/src/kmk/kmkbuiltin


Ignore:
Timestamp:
May 13, 2008 12:07:24 AM (17 years ago)
Author:
bird
Message:

Forgot to read the environment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/cp.c

    r1627 r1630  
    377377
    378378        /* Finally, check that the "to" directory isn't protected. */
    379         if (kBuildProtectionEnforce(&g_ProtData,
    380                                     Rflag || rflag
    381                                     ? KBUILDPROTECTIONTYPE_RECURSIVE
    382                                     : KBUILDPROTECTIONTYPE_FULL,
    383                                     to.p_path)) {
    384             kBuildProtectionTerm(&g_ProtData);
    385             return 1;
     379        rc = 1;
     380        if (!kBuildProtectionScanEnv(&g_ProtData, envp, "KMK_CP_")
     381         && !kBuildProtectionEnforce(&g_ProtData,
     382                                     Rflag || rflag
     383                                     ? KBUILDPROTECTIONTYPE_RECURSIVE
     384                                     : KBUILDPROTECTIONTYPE_FULL,
     385                                     to.p_path)) {
     386            rc = copy(argv, type, fts_options);
    386387        }
    387388
    388         rc = copy(argv, type, fts_options);
    389389        kBuildProtectionTerm(&g_ProtData);
    390390        return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette