From 726ebf9d4bca15e71e11504e6854db252d2efea3 Mon Sep 17 00:00:00 2001 From: Colin Shea Date: Thu, 8 Sep 2011 14:39:43 -0700 Subject: [PATCH 1/2] Fix formatting. That's all! --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 89ec052..a179ac5 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,4 @@ If you want to hijack open calls for .mp3 files you can just use -sudo apt-get install systemtap -sudo stap -g -e 'probe kernel.function("do_filp_open") { p = kernel_string($pathname); l = strlen(p); if (substr(p, l - 4, l) == ".mp3") { $pathname = %{ (long)"/some/path/rickroll.mp3" %}; } }' + From d2957d43523bb9b43b112117c26c4488084ea89c Mon Sep 17 00:00:00 2001 From: Colin Shea Date: Thu, 8 Sep 2011 14:41:52 -0700 Subject: [PATCH 2/2] Fixed GitHub's wonky. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a179ac5..69223d8 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,6 @@ If you want to hijack open calls for .mp3 files you can just use + sudo stap -g -e 'probe kernel.function("do_filp_open") { p = kernel_string($pathname); l = strlen(p); if (substr(p, l - 4, l) == ".mp3") { $pathname = %{ (long)"/some/path/rickroll.mp3" %}; } }' + +Note: requires the systemtap program. Debian users can use apt-get: `sudo apt-get install systemtap`. \ No newline at end of file