diff options
author | wiz <wiz> | 2009-07-17 10:43:21 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-07-17 10:43:21 +0000 |
commit | e7641448d6a5aec190cdf0b7680d049589f22e1d (patch) | |
tree | 8b9c142ab5fcee35014c4dc388d1ba839acb66f3 /filesystems/fuse-mp3fs/patches | |
parent | 26cf9ea15b619a1ae84c131a590c5bfea464beed (diff) | |
download | pkgsrc-e7641448d6a5aec190cdf0b7680d049589f22e1d.tar.gz |
Be smarter when parsing the argument for the bitrate.
Allows mounting directories with commas in them.
Bump PKGREVISION.
Diffstat (limited to 'filesystems/fuse-mp3fs/patches')
-rw-r--r-- | filesystems/fuse-mp3fs/patches/patch-aa | 13 |
1 files changed, 11 insertions, 2 deletions
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 <fcntl.h> @@ -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); |