diff options
author | Val Packett <[email protected]> | 2023-05-05 21:56:39 -0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2023-05-31 17:00:53 -0700 |
commit | bd4962b5ac42940a0c674b03ae9f47e36b13c908 (patch) | |
tree | 8efc4e4a4dcb43d3ab7f32560640d047464c7f64 /contrib/pam_zfs_key | |
parent | c47b708647d10e6391101492dbd0f63a386ccd10 (diff) |
PAM: use boolean_t for config flags
Since we already use boolean_t in the file, we can use it here.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Felix Dörre <[email protected]>
Signed-off-by: Val Packett <[email protected]>
Closes #14834
Diffstat (limited to 'contrib/pam_zfs_key')
-rw-r--r-- | contrib/pam_zfs_key/pam_zfs_key.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/pam_zfs_key/pam_zfs_key.c b/contrib/pam_zfs_key/pam_zfs_key.c index 9d9076e1a..b3086e038 100644 --- a/contrib/pam_zfs_key/pam_zfs_key.c +++ b/contrib/pam_zfs_key/pam_zfs_key.c @@ -437,7 +437,7 @@ typedef struct { char *dsname; uid_t uid; const char *username; - int unmount_and_unload; + boolean_t unmount_and_unload; } zfs_key_config_t; static int @@ -471,7 +471,7 @@ zfs_key_config_load(pam_handle_t *pamh, zfs_key_config_t *config, } config->uid = entry->pw_uid; config->username = name; - config->unmount_and_unload = 1; + config->unmount_and_unload = B_TRUE; config->dsname = NULL; config->homedir = NULL; for (int c = 0; c < argc; c++) { @@ -482,7 +482,7 @@ zfs_key_config_load(pam_handle_t *pamh, zfs_key_config_t *config, free(config->runstatedir); config->runstatedir = strdup(argv[c] + 12); } else if (strcmp(argv[c], "nounmount") == 0) { - config->unmount_and_unload = 0; + config->unmount_and_unload = B_FALSE; } else if (strcmp(argv[c], "prop_mountpoint") == 0) { if (config->homedir == NULL) config->homedir = strdup(entry->pw_dir); |