rpms/cracklib/devel cracklib-2.8.15-suffix.patch, NONE, 1.1 cracklib-2.8.13-suffix.patch, 1.1, NONE

Nalin Dahyabhai nalin at fedoraproject.org
Tue Dec 1 20:52:43 UTC 2009


Author: nalin

Update of /cvs/pkgs/rpms/cracklib/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26826

Added Files:
	cracklib-2.8.15-suffix.patch 
Removed Files:
	cracklib-2.8.13-suffix.patch 
Log Message:
- report the filename we passed to lstat() when we treat its error return
  as an exception


cracklib-2.8.15-suffix.patch:
 _cracklibmodule.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE cracklib-2.8.15-suffix.patch ---
Where possible, actually use the name of the file that we couldn't find.
SF#2907104.

diff -up cracklib-2.8.15/python/_cracklibmodule.c cracklib-2.8.15/python/_cracklibmodule.c
--- cracklib-2.8.15/python/_cracklibmodule.c	2009-11-18 18:58:20.000000000 -0500
+++ cracklib-2.8.15/python/_cracklibmodule.c	2009-12-01 15:14:21.000000000 -0500
@@ -101,7 +101,7 @@ _cracklib_FascistCheck(PyObject *self, P
         sprintf(dictfile, "%s" DICT_SUFFIX, dict);
         if (lstat(dictfile, &st) == -1)
         {
-            PyErr_SetFromErrnoWithFilename(PyExc_OSError, dict);
+            PyErr_SetFromErrnoWithFilename(PyExc_OSError, dictfile);
             free(dictfile);
             return NULL;
         }
@@ -123,7 +123,7 @@ _cracklib_FascistCheck(PyObject *self, P
         sprintf(dictfile, "%s" DICT_SUFFIX, defaultdict);
         if (lstat(dictfile, &st) == -1)
         {
-            PyErr_SetFromErrnoWithFilename(PyExc_OSError, defaultdict);
+            PyErr_SetFromErrnoWithFilename(PyExc_OSError, dictfile);
             free(defaultdict);
             free(dictfile);
             return NULL;


--- cracklib-2.8.13-suffix.patch DELETED ---




More information about the fedora-extras-commits mailing list