Bug#835343: bsdutils: logger uses /dev/log on kfreebsd
Package: bsdutils
Version: 2.28.1-1
Tags: patch
logger by default uses /dev/log in kfreebsd. It should be /var/run/log as fifos are not allowed in FreeBSD devfs.
As a workaround you can do: logger -u /var/run/log bla
(this problem found by Peter Czanik / @PCzanik)
--
Jon Boden
ubuntuBSD -- The power of FreeBSD kernel with familiarity of Ubuntu OS!
http://www.ubuntubsd.org/ -- https://twitter.com/ubuntuBSD
diff -Nur -x '*~' -x changelog ../debian/patches/bsd.diff debian/patches/bsd.diff
--- ../debian/patches/bsd.diff 1970-01-01 01:00:00.000000000 +0100
+++ debian/patches/bsd.diff 2016-08-24 13:30:50.617777000 +0200
@@ -0,0 +1,16 @@
+Index: util-linux-2.27.1/include/pathnames.h
+===================================================================
+--- util-linux-2.27.1.orig/include/pathnames.h
++++ util-linux-2.27.1/include/pathnames.h
+@@ -206,7 +206,11 @@
+ #define _PATH_PROC_CMDLINE "/proc/cmdline"
+
+ /* logger paths */
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#define _PATH_DEVLOG "/var/run/log"
++#else
+ #define _PATH_DEVLOG "/dev/log"
++#endif
+
+ #endif /* PATHNAMES_H */
+
diff -Nur -x '*~' -x changelog ../debian/patches/series debian/patches/series
--- ../debian/patches/series 2016-04-13 18:44:14.000000000 +0200
+++ debian/patches/series 2016-08-24 13:29:12.019852000 +0200
@@ -8,3 +8,4 @@
build-sys-use-PKG_CONFIG.patch
sulogin-fallback-static-sh.patch
sulogin-lockedpwd.patch
+bsd.diff
Reply to: