summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/mkdefaults
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sudo/mkdefaults')
-rw-r--r--usr.bin/sudo/mkdefaults5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sudo/mkdefaults b/usr.bin/sudo/mkdefaults
index 856890050c9..f125e045258 100644
--- a/usr.bin/sudo/mkdefaults
+++ b/usr.bin/sudo/mkdefaults
@@ -109,8 +109,9 @@ print CFILE "\tNULL, 0, NULL\n }\n};\n";
# Print out def_tuple
if (@tuple_values) {
print HEADER "\nenum def_tupple {\n";
- foreach (@tuple_values) {
- print HEADER "\t$_,\n";
+ for ($i = 0; $i <= $#tuple_values; $i++) {
+ printf HEADER "\t%s%s\n", $tuple_values[$i],
+ $i != $#tuple_values ? "," : "";
}
print HEADER "};\n";
}