summaryrefslogtreecommitdiffstats
path: root/pw/pwupd.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-04 15:27:04 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-04 15:27:04 +0000
commita723ebdc0a4d074c12bedca8c7d483a13105c295 (patch)
treec041c77aaa80a7890f98192b8b6c245c94f7166c /pw/pwupd.h
parentcc666f9d1a91a808b95a347674765342e3a354ef (diff)
downloadpw-darwin-a723ebdc0a4d074c12bedca8c7d483a13105c295.tar.gz
pw-darwin-a723ebdc0a4d074c12bedca8c7d483a13105c295.tar.zst
pw-darwin-a723ebdc0a4d074c12bedca8c7d483a13105c295.zip
Validate input of pw usermod -h and pwusermod -H
Push the code that set the password into a separate function to improve readability Add regression tests about pw usermod -h and pw usermod -H
Diffstat (limited to 'pw/pwupd.h')
-rw-r--r--pw/pwupd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pw/pwupd.h b/pw/pwupd.h
index 8f46e7d..c6ed32e 100644
--- a/pw/pwupd.h
+++ b/pw/pwupd.h
@@ -85,10 +85,12 @@ struct pwconf {
char etcpath[MAXPATHLEN];
char *newname;
char *config;
+ int fd;
bool dryrun;
bool pretty;
bool v7;
bool checkduplicate;
+ bool precrypted;
struct userconf *userconf;
};