From e77fc2805ecf0c47db1b8dd4b4ce797d57fec20d Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 20 Oct 2014 13:49:44 +0200 Subject: [PATCH] Cast gid_t to unsigned long when printing. --- shadow-4.1.5.1-audit-update.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadow-4.1.5.1-audit-update.patch b/shadow-4.1.5.1-audit-update.patch index c25db61..75964de 100644 --- a/shadow-4.1.5.1-audit-update.patch +++ b/shadow-4.1.5.1-audit-update.patch @@ -1006,7 +1006,7 @@ diff -urp shadow-4.1.5.1.orig/src/groupmod.c shadow-4.1.5.1/src/groupmod.c + 511 - strlen(info_passwd.audit_msg)); + free(nv_pair); + } -+ snprintf(nv, sizeof(nv), " gid=%lu", group_id); ++ snprintf(nv, sizeof(nv), " gid=%lu", (unsigned long)group_id); + strncat(info_group.audit_msg, nv, 511 - strlen(info_group.audit_msg)); + strncat(info_passwd.audit_msg, nv, 511 - strlen(info_passwd.audit_msg)); + @@ -1073,7 +1073,7 @@ diff -urp shadow-4.1.5.1.orig/src/groupmod.c shadow-4.1.5.1/src/groupmod.c #endif } if (gflg) { -+ snprintf(nv, sizeof(nv), " new_gid=%lu", group_newid); ++ snprintf(nv, sizeof(nv), " new_gid=%lu", (unsigned long)group_newid); + strncat(info_group.audit_msg, nv, + 511 - strlen(info_group.audit_msg)); + strncat(info_passwd.audit_msg, nv,