[Nagios-devel] Patch for persistant Author
Posted: Wed May 09, 2007 1:48 am
Dear devel-list,
I think it's more usefull, if the user which logged into nagios could not
modify the Author Field.
Here is me patch.
If you think twice with me, put it into the newest version.
Regards,
Matthias
--- cgi/cmd.c (version 2. 9)
+++ cgi/cmd.c (working copy)
@@ -943,7 +943,7 @@
printf("");
printf("\n");
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
@@ -969,7 +969,7 @@
printf("");
printf("\n");
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
@@ -1152,7 +1152,7 @@
printf("",service_desc);
}
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
@@ -1284,7 +1284,7 @@
printf("\n");
}
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
I think it's more usefull, if the user which logged into nagios could not
modify the Author Field.
Here is me patch.
If you think twice with me, put it into the newest version.
Regards,
Matthias
--- cgi/cmd.c (version 2. 9)
+++ cgi/cmd.c (working copy)
@@ -943,7 +943,7 @@
printf("");
printf("\n");
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
@@ -969,7 +969,7 @@
printf("");
printf("\n");
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
@@ -1152,7 +1152,7 @@
printf("",service_desc);
}
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
@@ -1284,7 +1284,7 @@
printf("\n");
}
printf("Author (Your
Name):");
- printf("",comment_author);
+ printf("",comment_author);
printf("\n");
printf("Comment:");
printf("",comment_data);
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]