mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-14 09:12:11 +03:00
Update pam_zfs_key.c defaultt path for FreeBSD
As described in https://github.com/freebsd/freebsd-src/pull/1305, FreeBSD's installer defaults to zroot/home for user home directories. For FreeBSD only, set the default prefix for pam_zfs_key to match. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Eric A. Borisch <eborisch@gmail.com> Closes #17600
This commit is contained in:
parent
5846a85155
commit
04d991dbc4
@ -391,7 +391,11 @@ static int
|
||||
zfs_key_config_load(pam_handle_t *pamh, zfs_key_config_t *config,
|
||||
int argc, const char **argv)
|
||||
{
|
||||
#if defined(__FreeBSD__)
|
||||
config->homes_prefix = strdup("zroot/home");
|
||||
#else
|
||||
config->homes_prefix = strdup("rpool/home");
|
||||
#endif
|
||||
if (config->homes_prefix == NULL) {
|
||||
pam_syslog(pamh, LOG_ERR, "strdup failure");
|
||||
return (PAM_SERVICE_ERR);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user