- Correct rh.patch

This commit is contained in:
Jiří Popelka 2009-12-10 08:02:19 +00:00
parent 649b6dcfed
commit 43889fad99
2 changed files with 13 additions and 10 deletions

View File

@ -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);

View File

@ -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 <jpopelka@redhat.com> - 1.0.3-2
- Correct rh.patch
* Mon Dec 07 2009 Jiri Popelka <jpopelka@redhat.com> - 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.