forked from pool/systemd
74bf6f2e1d
- Add patch getty-generator-with-serial-3270-tty.patch to avoid harmless error messages on not existing getty@3270 files - Replace systemd-big-endian-reply-matching.patch with upstream 0001-sd-bus-don-t-look-for-a-64bit-value-when-we-only-hav.patch to solve broken systemd communication with and over dbus (bnc#866732) - Readd patch 1008-add-msft-compability-rules.patch for older code base as 13.1 - Modify pre_checkin.sh to throw an error if a patch will be applied which modifies one of Makefile.am, Makefile.in, or configiure.ac as this breaks bootstrapping - Add second version of make-209-working-on-older-dist.patch to be able to apply for bootstrapping version - Don't require non-existing binutils-gold - Avoid file conflict between udev and systemd (bnc#868230) - Modify patch module-load-handle-SUSE-etc-sysconfig-kernel-module-list.patch to ignore if /etc/sysconfig/kernel does not exist (bnc#865834) - Add patch systemd-big-endian-reply-matching.patch make sure that systemd can talk with dbus-daemon even on big endian systems (bnc#866732) ----------------------------------------------------------------- - Due to previous reason, resurrect systemd-dbus-system-bus-address.patch - Removed pkgconfig(dbus-1) BuildRequires - with 209 and newer, itis only needed for quering default DBus directories, which we nowpass to configure. OBS-URL: https://build.opensuse.org/request/show/225960 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=178
35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
The path for the serial 3270 console looks like (dev/)3270/tty1 which
|
|
causes trouble in the systemd-getty-generator as the add_symlink()
|
|
tries to make directories for each slash even for the slash after
|
|
the @ symbol in the final link name.
|
|
|
|
---
|
|
getty-generator.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
--- systemd-210/src/getty-generator/getty-generator.c
|
|
+++ systemd-210/src/getty-generator/getty-generator.c 2014-03-14 14:13:09.296463091 +0000
|
|
@@ -67,6 +67,7 @@ static int add_symlink(const char *fserv
|
|
|
|
static int add_serial_getty(const char *tty) {
|
|
_cleanup_free_ char *n = NULL;
|
|
+ char *at;
|
|
|
|
assert(tty);
|
|
|
|
@@ -76,6 +77,14 @@ static int add_serial_getty(const char *
|
|
if (!n)
|
|
return log_oom();
|
|
|
|
+ if ((at = strchr(n, '@'))) {
|
|
+ char *sl;
|
|
+ while (*(++at) && (sl = strchr(at, '/'))) {
|
|
+ *sl = '-';
|
|
+ at = sl;
|
|
+ }
|
|
+ }
|
|
+
|
|
return add_symlink("serial-getty@.service", n);
|
|
}
|
|
|