diff options
author | iedowse <iedowse@FreeBSD.org> | 2004-01-11 18:28:08 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2004-01-11 18:28:08 +0000 |
commit | 94e2d83c186d4afb92d60f40368db9f892fd7bcc (patch) | |
tree | 64915f17da25aadaec343a44b5be3a90afa35f25 /usr.sbin/pw/pw.c | |
parent | 7cefb3fd899f3524b428658034b0b4afe67e6b03 (diff) | |
download | FreeBSD-src-94e2d83c186d4afb92d60f40368db9f892fd7bcc.zip FreeBSD-src-94e2d83c186d4afb92d60f40368db9f892fd7bcc.tar.gz |
Add a `-H <fd>' option that is like `-h <fd>', but accepts an already
encrypted password on the specified file descriptor.
PR: bin/22033
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index 01ba43a..4010e84 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/pw/pw.c @@ -106,18 +106,18 @@ main(int argc, char *argv[]) static const char *opts[W_NUM][M_NUM] = { { /* user */ - "V:C:qn:u:c:d:e:p:g:G:mk:s:oL:i:w:h:Db:NPy:Y", + "V:C:qn:u:c:d:e:p:g:G:mk:s:oL:i:w:h:H:Db:NPy:Y", "V:C:qn:u:rY", - "V:C:qn:u:c:d:e:p:g:G:ml:k:s:w:L:h:FNPY", + "V:C:qn:u:c:d:e:p:g:G:ml:k:s:w:L:h:H:FNPY", "V:C:qn:u:FPa7", "V:C:q", "V:C:q", "V:C:q" }, { /* grp */ - "V:C:qn:g:h:M:pNPY", + "V:C:qn:g:h:H:M:pNPY", "V:C:qn:g:Y", - "V:C:qn:g:l:h:FM:m:NPY", + "V:C:qn:g:l:h:H:FM:m:NPY", "V:C:qn:g:FPa", "V:C:q" } @@ -315,6 +315,7 @@ cmdhelp(int mode, int which) "\t-o duplicate uid ok\n" "\t-L class user class\n" "\t-h fd read password on fd\n" + "\t-H fd read encrypted password on fd\n" "\t-Y update NIS maps\n" "\t-N no update\n" " Setting defaults:\n" @@ -357,6 +358,7 @@ cmdhelp(int mode, int which) "\t-s shell name of login shell\n" "\t-w method set new password using method\n" "\t-h fd read password on fd\n" + "\t-H fd read encrypted password on fd\n" "\t-Y update NIS maps\n" "\t-N no update\n", "usage: pw usershow [uid|name] [switches]\n" |