Bug 257803 - ftp/vsftpd: fix user management with pkg -r
Summary: ftp/vsftpd: fix user management with pkg -r
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2021-08-13 01:22 UTC by Brad Davis
Modified: 2021-08-19 07:43 UTC (History)
0 users

See Also:
dinoex: maintainer-feedback+


Attachments
patch (1.11 KB, patch)
2021-08-13 01:22 UTC, Brad Davis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Davis freebsd_committer 2021-08-13 01:22:21 UTC
Created attachment 227153 [details]
patch

Not sure why this is being done manually, but it breaks user creation when populating an image with pkg -r and leaves the user/group behind when the pkg is removed.
Comment 1 Dirk Meyer freebsd_committer 2021-08-14 09:59:08 UTC
This is the intended behavior.
on upgraded systems there is an ftp user in the base.
and using USER/GROUP has regressions in this case.

I will test if the regressions still occurs.
Comment 2 Brad Davis freebsd_committer 2021-08-18 15:20:06 UTC
On upgraded systems? I don't see a ftp user in CURRENT: https://cgit.freebsd.org/src/tree/etc/master.passwd
Comment 3 Dirk Meyer freebsd_committer 2021-08-19 07:43:05 UTC
(In reply to Brad Davis from comment #2)

You have an ftp user on systems which have been upgraded from previous version of ftp. This conflicts with the logic in bsd.port.mk and pkg.