]> granicus.if.org Git - sudo/commitdiff
Fix format string mismatch, sudo_order is unsigned.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 16 May 2018 16:15:15 +0000 (10:15 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Wed, 16 May 2018 16:15:15 +0000 (10:15 -0600)
plugins/sudoers/cvtsudoers_ldif.c

index e362e6e41a3750176cd5e85aca2ef8ee0bc71eef..39f9015c9618a6c8b81a09c94979cd483ae55a11 100644 (file)
@@ -447,7 +447,7 @@ print_userspec_ldif(FILE *fp, struct userspec *us, struct cvtsudoers_config *con
            print_cmndspec_ldif(fp, cs, &next, &priv->defaults);
 
            if (conf->sudo_order != 0) {
-               fprintf(fp, "sudoOrder: %d\n\n", conf->sudo_order);
+               fprintf(fp, "sudoOrder: %u\n\n", conf->sudo_order);
                conf->sudo_order += conf->order_increment;
            }
        }