Skip to content

Commit

Permalink
Updated cupsconnection with the changes suggested by Tim.
Browse files Browse the repository at this point in the history
  • Loading branch information
narisipalli committed Jul 15, 2011
1 parent 068357d commit 3891123
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cupsconnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -3804,9 +3804,11 @@ Connection_adminExportSamba (Connection *self, PyObject *args)
if (!ret) {
rewind(tf);
while (!feof(tf)) {
fgets (str, 79, tf);
// Read the logfile line by line.
fgets (str, sizeof(str), tf);
}
fclose (tf);
// Last line contains the Exit status message.
PyErr_SetString (PyExc_RuntimeError, str);
debugprintf ("<- Connection_adminExportSamba() EXCEPTION\n");
return NULL;
Expand Down

0 comments on commit 3891123

Please sign in to comment.