aboutsummaryrefslogtreecommitdiff
path: root/security/manipulate_data/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-25 21:43:11 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-25 21:43:11 +0000
commit7f11d466fb1966d1a23174a60c9d3825f8e002e5 (patch)
tree389546535c067b9464b842356c1c5c23ade6f9de /security/manipulate_data/files
parent18fa8363e2dd66249614a1a74591e780b2019b76 (diff)
downloadports-7f11d466fb1966d1a23174a60c9d3825f8e002e5.tar.gz
ports-7f11d466fb1966d1a23174a60c9d3825f8e002e5.zip
Add manipulate_data, a set of tools to search data on a harddrive/partition/file,
extract the part you are interested in, and write it back after you modified it. PR: ports/69555 Submitted by: bugghy <bugghy@phenix.rootshell.be>
Notes
Notes: svn path=/head/; revision=114714
Diffstat (limited to 'security/manipulate_data/files')
-rw-r--r--security/manipulate_data/files/patch-read_data.c11
-rw-r--r--security/manipulate_data/files/patch-write_data.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/security/manipulate_data/files/patch-read_data.c b/security/manipulate_data/files/patch-read_data.c
new file mode 100644
index 000000000000..1e1984c62ead
--- /dev/null
+++ b/security/manipulate_data/files/patch-read_data.c
@@ -0,0 +1,11 @@
+--- read_data.c.orig Wed Jul 7 17:00:30 2004
++++ read_data.c Sun Jul 25 23:36:58 2004
+@@ -32,7 +32,7 @@
+ if (sizeof(start) < 8)
+ start = atol(argv[2]);
+ else
+- start = atoll(argv[2]);
++ start = strtoll(argv[2], (char **)NULL, 10);
+ bytes = atol(argv[3]);
+
+ if ((bytes < 1) || (bytes > MAX_SIZE)) {
diff --git a/security/manipulate_data/files/patch-write_data.c b/security/manipulate_data/files/patch-write_data.c
new file mode 100644
index 000000000000..62d31d596477
--- /dev/null
+++ b/security/manipulate_data/files/patch-write_data.c
@@ -0,0 +1,11 @@
+--- write_data.c.orig Wed Jul 7 16:58:54 2004
++++ write_data.c Sun Jul 25 23:37:48 2004
+@@ -49,7 +49,7 @@
+ if (sizeof(start) < 8)
+ start = atol(c_ptr2);
+ else
+- start = atoll(c_ptr2);
++ start = strtoll(c_ptr2, (char **)NULL, 10);
+ bytes = atol(c_ptr);
+ if (sizeof(start) < 8)
+ sprintf(tmpbuf, "%lu.%lu", (unsigned long) start, bytes);