[Bug 1182833] New: /usr/share/fillup-templates/sysconfig.postfix still refers to /etc/services
https://bugzilla.suse.com/show_bug.cgi?id=1182833 Bug ID: 1182833 Summary: /usr/share/fillup-templates/sysconfig.postfix still refers to /etc/services Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: gp@suse.com QA Contact: qa-bugs@suse.de CC: kukuk@suse.com Found By: --- Blocker: --- /usr/share/fillup-templates/sysconfig.postfix from postfix-3.5.9-3.3.x86_64 still refers to /etc/services which does not exist any longer (since about last spring). -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c1
--- Comment #1 from Thorsten Kukuk
https://bugzilla.suse.com/show_bug.cgi?id=1182833
Chenzi Cao
https://bugzilla.suse.com/show_bug.cgi?id=1182833
Peter Varkoly
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c2
Peter Varkoly
The comment is correct. Since you cannot change /usr/etc/services, you have to create a /etc/services file with just your changes.
IMHO this is the case: if test "$POSTFIX_SMTP_TLS_SERVER_LEGACY_SUPPORT" == "yes"; then grep -E '^smtps' /etc/services >/dev/null || { warn_user 1>&2 "adding service \"smtps\" to /etc/services" echo "smtps 465/tcp # smtp over SSL" >> /etc/services } fi This works even if /etc/services does not exists. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c3
--- Comment #3 from Thorsten Kukuk
This works even if /etc/services does not exists.
Depends on how you define "works". It would be better to check with "getent services smtps", if this entry exits and add it only if not. Else you will have later a hard time if you need to modify this entry during an upgrade (even if not very likely with today knowledge, but we never know what will happen). Why "getent services" and not grep on files? Because you cannot grep on db, LDAP or NIS databases or whatever else the admin has configured in /etc/nsswitch.conf. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c4
Peter Varkoly
(In reply to Peter Varkoly from comment #2)
This works even if /etc/services does not exists.
Depends on how you define "works". It would be better to check with "getent services smtps", if this entry exits and add it only if not. Else you will have later a hard time if you need to modify this entry during an upgrade (even if not very likely with today knowledge, but we never know what will happen). Why "getent services" and not grep on files? Because you cannot grep on db, LDAP or NIS databases or whatever else the admin has configured in /etc/nsswitch You are absolutely right! Thanks for the explanation! I'll fix it.
-- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c5
--- Comment #5 from OBSbugzilla Bot
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c7
--- Comment #7 from OBSbugzilla Bot
https://bugzilla.suse.com/show_bug.cgi?id=1182833
https://bugzilla.suse.com/show_bug.cgi?id=1182833#c9
Peter Varkoly
participants (1)
-
bugzilla_noreply@suse.com