summaryrefslogtreecommitdiffstats
path: root/lib/libutil/util.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-04-20 23:20:07 +0000
committermillert <millert@openbsd.org>2004-04-20 23:20:07 +0000
commit46bc4394b6cf452aa91b396164558f99e4875e17 (patch)
tree31df857047437f58a598270b99522ae61e10a579 /lib/libutil/util.h
parentadd back manpage that was forgotten during the switch, catched by and ok theo (diff)
downloadwireguard-openbsd-46bc4394b6cf452aa91b396164558f99e4875e17.tar.xz
wireguard-openbsd-46bc4394b6cf452aa91b396164558f99e4875e17.zip
Change pw_copy(3) to take a 3rd arguement, the existing passwd entry.
This allows an application to only update a password entry if it is in the state it expects. Additionally, if the old passwd struct is specified the new one may have a different pw_name field since matching is done on the original. Adapted from FreeBSD.
Diffstat (limited to 'lib/libutil/util.h')
-rw-r--r--lib/libutil/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/util.h b/lib/libutil/util.h
index 6f8b9b4095b..d3fc11fc35a 100644
--- a/lib/libutil/util.h
+++ b/lib/libutil/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.24 2003/06/02 20:18:42 millert Exp $ */
+/* $OpenBSD: util.h,v 1.25 2004/04/20 23:20:07 millert Exp $ */
/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
/*-
@@ -97,7 +97,7 @@ int pw_abort(void);
void pw_init(void);
void pw_edit(int, const char *);
void pw_prompt(void);
-void pw_copy(int, int, struct passwd *);
+void pw_copy(int, int, const struct passwd *, const struct passwd *);
void pw_getconf(char *, size_t, const char *, const char *);
int pw_scan(char *, struct passwd *, int *);
void pw_error(const char *, int, int);