Changeset 946


Ignore:
Timestamp:
Aug 10, 2016, 9:47:03 PM (9 years ago)
Author:
dmik
Message:

logging: Remove trailing dots in log file name.

These dots may appear after using % variables in the
file name specification - rename() barfs on them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/server/lib/util/debug.c

    r862 r946  
    500500        TALLOC_FREE(state.debugf);
    501501        state.debugf = talloc_strdup(NULL, name);
     502#ifdef __OS2__
     503        /* Remove trailing dots that may appear after using % variables in the
     504         * file name specification - rename() barfs on them. */
     505        size_t len = strlen(state.debugf);
     506        while (len && state.debugf[--len] == '.')
     507          state.debugf[len] = '\0';
     508#endif
    502509}
    503510
Note: See TracChangeset for help on using the changeset viewer.