]> git.pld-linux.org Git - packages/xz.git/commitdiff
- 0 means unlimited
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 5 Nov 2008 16:55:00 +0000 (16:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lzma-memlimit.patch -> 1.1

lzma-memlimit.patch [new file with mode: 0644]

diff --git a/lzma-memlimit.patch b/lzma-memlimit.patch
new file mode 100644 (file)
index 0000000..e99e04c
--- /dev/null
@@ -0,0 +1,44 @@
+--- lzma-4.999.5alpha/src/lzma/args.c.org      2008-11-05 17:48:00.636975812 +0100
++++ lzma-4.999.5alpha/src/lzma/args.c  2008-11-05 17:50:22.929253472 +0100
+@@ -179,7 +179,9 @@
+               // --memory
+               case 'M':
+                       opt_memory = str_to_uint64("memory", optarg,
+-                                      1, SIZE_MAX);
++                                      0, SIZE_MAX);
++                      if (opt_memory == 0)
++                              opt_memory = SIZE_MAX;
+                       break;
+               case 'N':
+--- lzma-4.999.5alpha/src/lzma/help.c~ 2008-09-04 10:02:46.000000000 +0200
++++ lzma-4.999.5alpha/src/lzma/help.c  2008-11-05 17:52:02.573618564 +0100
+@@ -111,7 +111,7 @@
+       puts(_(
+ " Resource usage options:\n"
+ "\n"
+-"  -M, --memory=NUM    use roughly NUM bytes of memory at maximum\n"
++"  -M, --memory=NUM    use roughly NUM bytes of memory at maximum (0 is unlimited)\n"
+ "  -T, --threads=NUM   use a maximum of NUM (de)compression threads\n"
+ // "      --threading=STR threading style; possible values are `auto' (default),\n"
+ // "                      `files', and `stream'
+--- lzma-4.999.5alpha/src/lzmadec/lzmadec.c~   2008-09-06 13:40:40.000000000 +0200
++++ lzma-4.999.5alpha/src/lzmadec/lzmadec.c    2008-11-05 17:53:17.588819403 +0100
+@@ -95,7 +95,7 @@
+ "  -k, --keep         (ignored)\n"
+ "  -f, --force        allow reading compressed data from a terminal\n"
+ "  -M, --memory=NUM   use NUM bytes of memory at maximum; the suffixes\n"
+-"                     k, M, G, Ki, Mi, and Gi are supported.\n"
++"                     k, M, G, Ki, Mi, and Gi are supported. 0 means unlimited.\n"
+ "      --format=FMT   accept only files in the given file format;\n"
+ "                     possible FMTs are `auto', `native', and alone',\n"
+ "  -h, --help         display this help and exit\n"
+@@ -264,6 +264,8 @@
+               case 'M':
+                       memlimit = str_to_size(optarg);
++                      if (memlimit == 0)
++                              memlimit = SIZE_MAX;
+                       break;
+               case 'h':
This page took 0.147331 seconds and 4 git commands to generate.