[Forensics-changes] [SCM] Guess PC disk partition table, find lost partitions branch, debian, updated. debian/0.1h-6-4-gf70a2b5

Daniel Baumann daniel at debian.org
Tue Nov 25 07:38:17 UTC 2008


The following commit has been merged in the debian branch:
commit 238c1d19b2419af26127d8966b0027af584b3c64
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Nov 25 08:35:38 2008 +0100

    Actually adding the file 03-open-mode.dpatch.

diff --git a/debian/patches/03-open-mode.dpatch b/debian/patches/03-open-mode.dpatch
new file mode 100644
index 0000000..9739f2f
--- /dev/null
+++ b/debian/patches/03-open-mode.dpatch
@@ -0,0 +1,19 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## 03-open-mode.dpatch by James Westby <james.westby at canonical.com>
+##
+## DP: Specify a mode to open(2) as required (Closes: #506816).
+
+ at DPATCH@
+
+diff -Naurp gpart.orig/src/gpart.c gpart/src/gpart.c
+--- gpart.orig/src/gpart.c	2008-10-19 15:06:06.000000000 +0000
++++ gpart/src/gpart.c	2008-11-25 07:34:47.000000000 +0000
+@@ -1221,7 +1221,7 @@ static int make_mbr_backup(disk_desc *d,
+ {
+ 	int		fd, ret = 0;
+ 
+-	if ((fd = open(bfile,O_WRONLY|O_CREAT)) < 0)
++	if ((fd = open(bfile,O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0)
+ 		return (ret);
+ 
+ 	if (write(fd,d->d_pt.t_boot,512) == 512)

-- 
Guess PC disk partition table, find lost partitions



More information about the forensics-changes mailing list