[Bug 234972] yppasswdd cannot update passwd (rename of /var/yp to /var/yp/master. passwd.hold failed)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 24 03:36:22 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234972

Edward Fuhr <edward.fuhr at us.fujitsu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edward.fuhr at us.fujitsu.com

--- Comment #1 from Edward Fuhr <edward.fuhr at us.fujitsu.com> ---
Created attachment 201374
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201374&action=edit
Fixes issue when rpc.yppasswdd fails to copy master.passwd

As of FreeBSD 12.0 rpc.yppasswdd was failing to copy the master.passwd file due
to call pw_init truncating the filename value stored in passfile

This fix copies the value of passfile to a temporary variable, passdir. This
prevents passfile from being truncated while also allowing the necessary
directory name to be passed.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list