Jason K Hall 1 day ago committed by GitHub
commit 22eeafc9a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,3 @@
bugfixes:
- "user module: FreeBSD backend now correctly ignores uid_min, uid_max, and umask,
instead of passing unsupported '-K' options to pw(8). (fixes #86252)"

@ -1507,6 +1507,7 @@ class FreeBsdUser(User):
cmd.append('-k')
cmd.append(self.skeleton)
if self.module.get_bin_path('useradd', required=False):
if self.umask is not None:
cmd.append('-K')
cmd.append('UMASK=' + self.umask)
@ -1526,6 +1527,7 @@ class FreeBsdUser(User):
else:
cmd.append(str(calendar.timegm(self.expires)))
if self.module.get_bin_path('useradd', required=False):
if self.uid_min is not None:
cmd.append('-K')
cmd.append('UID_MIN=' + str(self.uid_min))

Loading…
Cancel
Save