3
0
forked from pool/util-linux

Accepting request 23205 from home:elvigia:branches:Base:System

Copy from home:elvigia:branches:Base:System/util-linux via accept of submit request 23205 revision 2.
Request was accepted with message:
Missing from factory, indeed

OBS-URL: https://build.opensuse.org/request/show/23205
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=16
This commit is contained in:
Dirk Mueller 2009-10-27 07:58:59 +00:00 committed by Git OBS Bridge
parent 61fcd97ba0
commit 542dce636b
4 changed files with 46 additions and 1 deletions

View File

@ -1,9 +1,13 @@
libuuid1
libuuid-devel
requires -libuuid-<targettype>
requires "libuuid1-<targettype> = <version>"
requires -libblkid-<targettype>
requires "libblkid1-<targettype> = <version>"
libblkid1
obsoletes "e2fsprogs-<targettype> <= <version>"
libblkid-devel
requires -libblkid-<targettype>
requires "libblkid1-<targettype> = <version>"
requires -libuuid-<targettype>
requires "libuuid1-<targettype> = <version>"

View File

@ -0,0 +1,24 @@
commit fdf08588af55d07a99b411708a08f4ebe6819706
Author: Theodore Ts'o <tytso@mit.edu>
Date: Sat Oct 3 12:50:06 2009 -0400
lib: fix file descriptor leak in is_mounted()
Remove an extraneous fopen() that leaks memory and a file descriptor.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/lib/ismounted.c b/lib/ismounted.c
index 28ae325..fbe91f9 100644
--- a/lib/ismounted.c
+++ b/lib/ismounted.c
@@ -70,9 +70,6 @@ static int check_mntent_file(const char *mtab_file, const char *file,
char buf[1024], *device = 0, *mnt_dir = 0, *cp;
*mount_flags = 0;
- if ((f = fopen(mtab_file, "r")) == NULL)
- return errno;
-
if ((f = setmntent (mtab_file, "r")) == NULL)
return errno;
if (stat(file, &st_buf) == 0) {

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Oct 26 17:45:53 UTC 2009 - crrodriguez@opensuse.org
- fsck during boot up fails with Too many open files [bnc#503008]
-------------------------------------------------------------------
Tue Oct 20 12:14:24 CEST 2009 - dmueller@suse.de
- fix typo in baselibs.conf change
-------------------------------------------------------------------
Tue Oct 13 11:23:07 UTC 2009 - aj@suse.de
- Fix requires of 32-bit devel packages.
-------------------------------------------------------------------
Tue Sep 29 12:58:37 UTC 2009 - hvogel@novell.com

View File

@ -29,7 +29,7 @@ License: BSD 3-clause (or similar) ; GPL v2 or later
Group: System/Base
AutoReqProv: on
Version: 2.16
Release: 3
Release: 4
Requires: %name-lang = %{version}
Summary: A collection of basic system utilities
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-ng-%version.tar.bz2
@ -68,6 +68,7 @@ Patch1: util-linux-2.12r-fdisk_remove_bogus_warnings.patch
Patch2: util-linux-2.14.1-mount_skip_sync.patch
# crypto patch
Patch3: util-linux-mount_losetup_crypto.patch
Patch4: util-linux-ng-bnc503008.patch
##
## adjtimex
##
@ -152,6 +153,7 @@ unique IDs (UUIDs).
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
#
cd adjtimex-*
%patch50 -p1