summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:44 +0100
committerKarel Zak2006-12-07 00:26:44 +0100
commit9d761c85e04d9ec6d611e3ae5b860f0d91fe95ce (patch)
tree83bc44d67051c8818ae7f309c34481ee43d99dc6
parentImported from util-linux-2.12q tarball. (diff)
downloadkernel-qcow2-util-linux-9d761c85e04d9ec6d611e3ae5b860f0d91fe95ce.tar.gz
kernel-qcow2-util-linux-9d761c85e04d9ec6d611e3ae5b860f0d91fe95ce.tar.xz
kernel-qcow2-util-linux-9d761c85e04d9ec6d611e3ae5b860f0d91fe95ce.zip
Imported from util-linux-2.12r-pre1 tarball.
-rw-r--r--HISTORY6
-rw-r--r--VERSION2
-rw-r--r--fdisk/cfdisk.c2
-rw-r--r--mount/umount.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index a8035d312..eddd64d04 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,4 +1,10 @@
+util-linux 2.12r-pre1
+
+* cfdisk: fix a segfault with ReiserFS partitions
+* umount: disallow -r option for non-root users
+
util-linux 2.12q
+
* updated translation: nl
util-linux 2.12q-pre2
diff --git a/VERSION b/VERSION
index 8765ff9e7..0e19e9726 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.12q
+2.12r-pre1
diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c
index 46bc494e1..30a888de8 100644
--- a/fdisk/cfdisk.c
+++ b/fdisk/cfdisk.c
@@ -717,7 +717,7 @@ get_linux_label(int i) {
offset = (p_info[i].first_sector + p_info[i].offset) * SECTOR_SIZE
+ REISERFS_DISK_OFFSET_IN_BYTES;
if (ext2_llseek(fd, offset, SEEK_SET) == offset
- && read(fd, &reiserfsb, 1024) == 1024
+ && read(fd, &reiserfsb, sizeof(reiserfsb)) == sizeof(reiserfsb)
&& has_reiserfs_magic_string(&reiserfsb, &reiserfs_is_3_6)) {
if (reiserfs_is_3_6) {
/* label only on version 3.6 onward */
diff --git a/mount/umount.c b/mount/umount.c
index b26c28d45..db63d96a8 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -714,7 +714,7 @@ main (int argc, char *argv[]) {
if (getuid () != geteuid ()) {
suid = 1;
- if (all || types || nomtab || force)
+ if (all || types || nomtab || force || remount)
die (2, _("umount: only root can do that"));
}