summaryrefslogtreecommitdiff
path: root/debian/patches/passwd_option
diff options
context:
space:
mode:
authorMatthew Johnson <mjj29@qadesh.matthew.ath.cx>2009-12-06 00:13:59 +0000
committerMatthew Johnson <mjj29@qadesh.matthew.ath.cx>2009-12-06 00:13:59 +0000
commitc3e889d09ee09c6245ff2cf413aa88fc0a51cf1e (patch)
treedfb6707b823a330b641dcd5269758656f95437eb /debian/patches/passwd_option
parent86fb2958a1ea4a18f4d0b27ea203ef0b1fb8d535 (diff)
update ipmitool
Diffstat (limited to 'debian/patches/passwd_option')
-rw-r--r--debian/patches/passwd_option21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/passwd_option b/debian/patches/passwd_option
new file mode 100644
index 0000000..94c96eb
--- /dev/null
+++ b/debian/patches/passwd_option
@@ -0,0 +1,21 @@
+diff -rupN ipmitool-1.8.11/lib/ipmi_main.c ipmitool-1.8.11.fixed/lib/ipmi_main.c
+--- ipmitool-1.8.11/lib/ipmi_main.c 2009-02-26 05:38:52.000000000 +0900
++++ ipmitool-1.8.11.fixed/lib/ipmi_main.c 2009-12-04 06:50:08.246119798 +0900
+@@ -106,7 +106,7 @@ ipmi_password_file_read(char * filename)
+ char * pass = NULL;
+ int l;
+
+- pass = malloc(16);
++ pass = malloc(21);
+ if (pass == NULL) {
+ lprintf(LOG_ERR, "ipmitool: malloc failure");
+ return NULL;
+@@ -120,7 +120,7 @@ ipmi_password_file_read(char * filename)
+ }
+
+ /* read in id */
+- if (fgets(pass, 16, fp) == NULL) {
++ if (fgets(pass, 21, fp) == NULL) {
+ lprintf(LOG_ERR, "Unable to read password from file %s",
+ filename);
+ fclose(fp);