Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2014 10:56:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 195245] New: shells/lshell 0.9.16 fails to log to syslog
Message-ID:  <bug-195245-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195245

            Bug ID: 195245
           Summary: shells/lshell 0.9.16 fails to log to syslog
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dam@my.gd

Created attachment 149667
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149667&action=edit
Make lshell/checkconfig.py send syslog data to /var/run/log instead of
non-existent /dev/log

Summary:
shells/lshell doesn't log anything to syslog


Tested versions:
- 0.9.15.1
- 0.9.16


Synopsis:
lshell can log either to a file or to syslog depending on its configuration
file.

Sadly, lshell tries to log through /dev/log which hasn't existed on FreeBSD for
a long while.

Creating a symbolic link /dev/log -> /var/run/log didn't seem to fix the
problem.


How to reproduce:
Install vanilla shells/lshell
Instruct it to log to syslog in /usr/local/etc/lshell.conf
'[global]'
'logfilename    : syslog'
Rehash terminal, invoke lshell
Type commands, nope, syslog gets nothing


How to fix:
0.9.15.1 : Edit line 929 of lshellmodule/lshell.py to correctly point to
/var/run/log
0.9.16 : Edit line 310 of lshell/checkconfig.py to correctly point to
/var/run/log
Recompile, reinstall


Patch against 0.9.16 attached

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195245-13>