Ignore:
Timestamp:
Mar 19, 2018, 2:37:13 PM (7 years ago)
Author:
bird
Message:

kmk/win: Some fixes & docs.

File:
1 edited

Legend:

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

    r3141 r3159  
    190190
    191191    /*
    192      * Open the output file.
     192     * Open the output file, preferrably with close-on-exec.
    193193     */
    194194    iFile = i;
    195     pFile = fopen(argv[i], fTruncate ? "w" : "a");
     195    pFile = fopen(argv[i],
     196                  fTruncate ? "w" KMK_FOPEN_NO_INHERIT_MODE
     197                            : "a" KMK_FOPEN_NO_INHERIT_MODE);
    196198    if (!pFile)
    197199        return err(1, "failed to open '%s'", argv[i]);
Note: See TracChangeset for help on using the changeset viewer.