Mailinglist Archive: opensuse-commit (918 mails)

< Previous Next >
commit util-linux
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Fri, 02 Feb 2007 15:55:35 +0100
  • Message-id: <20070202145536.2BD6467816D@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package util-linux
checked in at Fri Feb 2 15:55:35 CET 2007.

--------
--- util-linux/util-linux.changes 2006-12-12 16:01:38.000000000 +0100
+++ /mounts/work_src_done/STABLE/util-linux/util-linux.changes 2007-02-02 13:35:59.000000000 +0100
@@ -1,0 +2,10 @@
+Fri Feb 2 13:27:31 CET 2007 - mkoenig@xxxxxxx
+
+- do not use O_EXCL for mkfs.cramfs [#241466]
+
+-------------------------------------------------------------------
+Wed Jan 31 12:06:55 CET 2007 - mkoenig@xxxxxxx
+
+- let mkfs tools open with O_EXCL [#238687]
+
+-------------------------------------------------------------------

New:
----
util-linux-2.12r-mkfs_open_exclusive.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ util-linux.spec ++++++
--- /var/tmp/diff_new_pack.c23098/_old 2007-02-02 15:54:18.000000000 +0100
+++ /var/tmp/diff_new_pack.c23098/_new 2007-02-02 15:54:18.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package util-linux (Version 2.12r)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -20,7 +20,7 @@
Group: System/Base
Autoreqprov: on
Version: 2.12r
-Release: 64
+Release: 70
Summary: A collection of basic system utilities
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-%version.tar.bz2
Source2: nologin.c
@@ -108,6 +108,7 @@
Patch107: util-linux-2.12r-mkswap_fix.patch
Patch108: util-linux-2.12r-nfs_remount_options.patch
Patch109: util-linux-2.12r-losetup_password.patch
+Patch110: util-linux-2.12r-mkfs_open_exclusive.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %insserv_prereq %fillup_prereq /bin/sed

@@ -181,6 +182,7 @@
%patch107 -p1
%patch108 -p1
%patch109 -p1
+%patch110 -p1
# setctsid
cp %{S:22} %{S:23} .
# nologin and guessfstype
@@ -614,6 +616,10 @@
%endif

%changelog -n util-linux
+* Fri Feb 02 2007 - mkoenig@xxxxxxx
+- do not use O_EXCL for mkfs.cramfs [#241466]
+* Wed Jan 31 2007 - mkoenig@xxxxxxx
+- let mkfs tools open with O_EXCL [#238687]
* Tue Dec 12 2006 - mkoenig@xxxxxxx
- provide different return codes for losetup with encryption
for empty and too short passwords. [#197493]

















++++++ util-linux-2.12r-mkfs_open_exclusive.patch ++++++
Index: util-linux-2.12r/disk-utils/mkswap.c
===================================================================
--- util-linux-2.12r.orig/disk-utils/mkswap.c
+++ util-linux-2.12r/disk-utils/mkswap.c
@@ -645,7 +645,7 @@ main(int argc, char ** argv) {
usage();
}

- DEV = open(device_name,O_RDWR);
+ DEV = open(device_name, O_RDWR | O_EXCL);
if (DEV < 0 || fstat(DEV, &statbuf) < 0) {
perror(device_name);
exit(1);
Index: util-linux-2.12r/disk-utils/mkfs.minix.c
===================================================================
--- util-linux-2.12r.orig/disk-utils/mkfs.minix.c
+++ util-linux-2.12r/disk-utils/mkfs.minix.c
@@ -699,7 +699,7 @@ main(int argc, char ** argv) {
tmp += dirsize;
*(short *)tmp = 2;
strcpy(tmp+2,".badblocks");
- DEV = open(device_name,O_RDWR );
+ DEV = open(device_name,O_RDWR | O_EXCL);
if (DEV<0)
die(_("unable to open %s"));
if (fstat(DEV,&statbuf)<0)
Index: util-linux-2.12r/disk-utils/mkfs.bfs.c
===================================================================
--- util-linux-2.12r.orig/disk-utils/mkfs.bfs.c
+++ util-linux-2.12r/disk-utils/mkfs.bfs.c
@@ -170,7 +170,7 @@ main(int argc, char *argv[]) {
if (!S_ISBLK(statbuf.st_mode))
fatal(_("%s is not a block special device"), device);

- fd = open(device, O_RDWR);
+ fd = open(device, O_RDWR | O_EXCL);
if (fd == -1) {
perror(device);
fatal(_("cannot open %s"), device);

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread