diff --git a/lockdev-1.0.3-rh.patch b/lockdev-1.0.3-rh.patch index 77cbb64..dad0671 100755 --- a/lockdev-1.0.3-rh.patch +++ b/lockdev-1.0.3-rh.patch @@ -236,15 +236,15 @@ diff -up lockdev-1.0.3/src/lockdev.c.redhat lockdev-1.0.3/src/lockdev.c unlink( tpname); /* in case there was */ rename( lockname, tpname); if ( ! (fd=fopen( tpname, "r")) ) { -@@ -511,7 +524,7 @@ dev_testlock(const char *devname) - #endif /* DEBUG */ - _debug( 3, "dev_testlock(%s)\n", devname); - if ( ! (p=_dl_check_devname( devname)) ) -- close_n_return( -1); -+ close_n_return( -errno); - strcpy( device, DEV_PATH); - strcat( device, p); /* now device has a copy of the pathname */ - _debug( 2, "dev_testlock() device = %s\n", device); +@@ -520,7 +533,7 @@ dev_testlock(const char *devname) + * and minor numbers + */ + if ( stat( device, &statbuf) == -1 ) { +- close_n_return( -1); ++ close_n_return(-errno); + } + + /* first check for the FSSTND-1.2 lock, get the pid of the @@ -585,7 +598,7 @@ dev_lock (const char *devname) #endif /* DEBUG */ _debug( 3, "dev_lock(%s)\n", devname); diff --git a/lockdev.spec b/lockdev.spec index 2a09389..052c0e7 100644 --- a/lockdev.spec +++ b/lockdev.spec @@ -1,7 +1,7 @@ Summary: A library for locking devices Name: lockdev Version: 1.0.3 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2 Group: System Environment/Libraries URL: http://packages.debian.org/unstable/source/lockdev @@ -90,6 +90,9 @@ rm -fr $RPM_BUILD_ROOT %{_includedir}/* %changelog +* Thu Dec 10 2009 Jiri Popelka - 1.0.3-2 +- Correct rh.patch + * Mon Dec 07 2009 Jiri Popelka - 1.0.3-1 - 1.0.3. No longer need 1.0.0-signal, 1.0.1-subdir, 1.0.1-fcntl, 1.0.1-32bit patches. - Renumbered patches and sources.