From 89c1df4b48333e3ded4e24ca1c6f5e1479c11afa697ca0f11826010143a2ddad Mon Sep 17 00:00:00 2001 From: David Anes Date: Wed, 12 Jan 2022 12:04:14 +0000 Subject: [PATCH] Accepting request 945812 from home:david.anes:branches:server:mail - fix [bsc#1194203]: * Always create fetchmail group, even if the user is already present, as a leftover from Leap 15.2 upgrade. This may happen also if user is messing with groups/users directly or upgrading from even an older fetchmail versions. OBS-URL: https://build.opensuse.org/request/show/945812 OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=125 --- fetchmail.changes | 9 +++++++++ fetchmail.spec | 2 +- fetchmail.sysusers | 10 +++++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/fetchmail.changes b/fetchmail.changes index 0a87d88..ca35430 100644 --- a/fetchmail.changes +++ b/fetchmail.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Jan 12 10:39:18 UTC 2022 - David Anes + +- fix [bsc#1194203]: + * Always create fetchmail group, even if the user is already + present, as a leftover from Leap 15.2 upgrade. This may happen + also if user is messing with groups/users directly or upgrading + from even an older fetchmail versions. + ------------------------------------------------------------------- Mon Dec 27 16:50:06 UTC 2021 - David Anes diff --git a/fetchmail.spec b/fetchmail.spec index 98a883f..ac5283c 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -1,7 +1,7 @@ # # spec file for package fetchmail # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/fetchmail.sysusers b/fetchmail.sysusers index c3cefac..d495863 100644 --- a/fetchmail.sysusers +++ b/fetchmail.sysusers @@ -1,3 +1,11 @@ # Type Name ID GECOS [HOME] -u fetchmail - "mail retrieval daemon" /var/lib/fetchmail + +# during upgrade from previous versions, the group may +# have been deleted but the user still be present. Therefore +# we have to be sure to recreate the group, as adding only +# the user (if already present) won't create it +g fetchmail - + +u fetchmail - "mail retrieval daemon" /var/lib/fetchmail +m fetchmail fetchmail