Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pam-u2f/dist add casts, change to multiline.



details:   https://anonhg.NetBSD.org/src/rev/b523447e66b9
branches:  trunk
changeset: 1007870:b523447e66b9
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 03 00:27:08 2020 +0000

description:
add casts, change to multiline.

diffstat:

 external/bsd/pam-u2f/dist/drop_privs.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r fb26a40ff4d1 -r b523447e66b9 external/bsd/pam-u2f/dist/drop_privs.h
--- a/external/bsd/pam-u2f/dist/drop_privs.h    Tue Mar 03 00:22:29 2020 +0000
+++ b/external/bsd/pam-u2f/dist/drop_privs.h    Tue Mar 03 00:27:08 2020 +0000
@@ -55,8 +55,13 @@
 
 #define PAM_MODUTIL_DEF_PRIVS(n)                                               \
   gid_t n##_saved_groups[SAVED_GROUPS_MAX_LEN];                                \
-  struct _ykpam_privs n = {-1, -1, n##_saved_groups, SAVED_GROUPS_MAX_LEN,     \
-                           cfg->debug_file}
+  struct _ykpam_privs n = { \
+      (uid_t)-1, \
+      (gid_t)-1, \
+      n##_saved_groups, \
+      SAVED_GROUPS_MAX_LEN,     \
+      cfg->debug_file, \
+  }
 
 int pam_modutil_drop_priv(pam_handle_t *, struct _ykpam_privs *,
                           struct passwd *);



Home | Main Index | Thread Index | Old Index