syslogd(8) trim last character of log path from the file specified by -P option

Issue #112 resolved
Takehiko NOZAKI repo owner created an issue

see following code of logpath_fileadd():

       while ((line = fgetln(fp, &len)) != NULL) {
               line[len - 1] = 0;

if file have no newline at last of file, last chatacter may trimmed incorrectly.

Comments (1)

  1. Takehiko NOZAKI reporter

    BUGFIX: Issue #112 - syslogd(8) trim last character of log path from the file specified by -P option. CLEANUP: replace fgetln(3) with getline(3) for portability.

    → <<cset 0023e7ea6f58>>

  2. Log in to comment