Changeset 3159 for trunk/src/kmk/kmkbuiltin/append.c
- Timestamp:
- Mar 19, 2018, 2:37:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/append.c
r3141 r3159 190 190 191 191 /* 192 * Open the output file .192 * Open the output file, preferrably with close-on-exec. 193 193 */ 194 194 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); 196 198 if (!pFile) 197 199 return err(1, "failed to open '%s'", argv[i]);
Note:
See TracChangeset
for help on using the changeset viewer.