From 4c8b1a0d05cb842705493dc5bfa3d0e062c7da80d8469c4cd1d53457c022c06b Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 16 Apr 2007 22:42:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=12 --- util-linux-2.12r-mount_racy_loop.patch | 3 ++- util-linux.changes | 6 ++++++ util-linux.spec | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/util-linux-2.12r-mount_racy_loop.patch b/util-linux-2.12r-mount_racy_loop.patch index 3e33e1c..803b3fb 100644 --- a/util-linux-2.12r-mount_racy_loop.patch +++ b/util-linux-2.12r-mount_racy_loop.patch @@ -24,7 +24,7 @@ Index: util-linux-ng-2.12r+git20070330/mount/mount.c =================================================================== --- util-linux-ng-2.12r+git20070330.orig/mount/mount.c +++ util-linux-ng-2.12r+git20070330/mount/mount.c -@@ -712,20 +712,33 @@ loop_check(const char **spec, const char +@@ -712,20 +712,34 @@ loop_check(const char **spec, const char printf(_("mount: skipping the setup of a loop device\n")); } else { int loopro = (*flags & MS_RDONLY); @@ -49,6 +49,7 @@ Index: util-linux-ng-2.12r+git20070330/mount/mount.c - return EX_FAIL; - } + printf(_("mount: going to use the loop device %s\n"), *loopdev); ++ offset = opt_offset ? strtoull(opt_offset, NULL, 0) : 0; + if (res = set_loop (*loopdev, *loopfile, offset, + opt_encryption, pfd, &loopro)) { + switch(res) { diff --git a/util-linux.changes b/util-linux.changes index 36d12d4..cb66e2f 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 16 17:20:16 CEST 2007 - mkoenig@suse.de + +- fix initialization of offset in + util-linux-2.12r-mount_racy_loop.patch [#264225] + ------------------------------------------------------------------- Tue Apr 10 17:25:34 CEST 2007 - mkoenig@suse.de diff --git a/util-linux.spec b/util-linux.spec index fbc5ba7..612a7db 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -21,7 +21,7 @@ License: BSD License and BSD-like, GNU General Public License (GPL) Group: System/Base Autoreqprov: on Version: 2.12r+git20070330 -Release: 1 +Release: 2 Summary: A collection of basic system utilities Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-ng-%version.tar.bz2 Source2: nologin.c @@ -616,6 +616,9 @@ fi %endif %changelog +* Mon Apr 16 2007 - mkoenig@suse.de +- fix initialization of offset in + util-linux-2.12r-mount_racy_loop.patch [#264225] * Tue Apr 10 2007 - mkoenig@suse.de - update to version git20070330 of new forked development tree - removed Suse crypto patches for losetup [FATE#302001]