IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23216


Ignore:
Timestamp:
Mar 6, 2009, 2:39:17 PM (17 years ago)
Author:
Paul Price
Message:

Don't truncate log files!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r20546 r23216  
    195195    }
    196196
    197     int fileD = creat(dest, 0666);
     197    int fileD = open(dest, O_WRONLY | O_CREAT, 0666);
    198198    if (fileD == 0) {
    199199        psError(PS_ERR_IO, true, _("Could not open file '%s' for output."), dest);
     
    316316
    317317    if (write(logFD, head, strlen(head))) {;} // ignore return value
    318    
     318
    319319    if (logMsg) {
    320320        psString msg = NULL;            // Message to print
Note: See TracChangeset for help on using the changeset viewer.