From e7641448d6a5aec190cdf0b7680d049589f22e1d Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 17 Jul 2009 10:43:21 +0000 Subject: Be smarter when parsing the argument for the bitrate. Allows mounting directories with commas in them. Bump PKGREVISION. --- filesystems/fuse-mp3fs/patches/patch-aa | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'filesystems/fuse-mp3fs/patches') diff --git a/filesystems/fuse-mp3fs/patches/patch-aa b/filesystems/fuse-mp3fs/patches/patch-aa index 3877d098a1f..8e145ebe404 100644 --- a/filesystems/fuse-mp3fs/patches/patch-aa +++ b/filesystems/fuse-mp3fs/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ +$NetBSD: patch-aa,v 1.2 2009/07/17 10:43:21 wiz Exp $ ---- src/mp3fs.c.orig 2008-12-14 05:17:35.000000000 +0000 +--- src/mp3fs.c.orig 2008-12-14 06:17:35.000000000 +0100 +++ src/mp3fs.c @@ -30,7 +30,11 @@ #include @@ -40,3 +40,12 @@ $NetBSD: patch-aa,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ if(res == -1) return -errno; +@@ -252,7 +265,7 @@ int main(int argc, char *argv[]) { + basepath = argv[1]; + bitrate = 0; + +- rate = strchr(basepath, ','); ++ rate = strrchr(basepath, ','); + if(rate) { + rate[0] = '\0'; + bitrate = atoi(rate + 1); -- cgit v1.2.3