Control: tag -1 patch

On Mon, 20 Mar 2017, Peter Palfrader wrote:

> Package: bsdmainutils
> Version: 9.0.12
> Severity: normal
> 
> cal -M (to start the week on a Monday, as documented in the manpage) does
> not work anymore:
> 
> | weasel@orinoco:~$ /usr/bin/cal -M
> | Usage: cal [general options] [-jy] [[month] year]
> |        cal [general options] [-j] [-m month] [year]
> [..]
> 
> In jessie, the following served as a workaround:
> 
> | weasel@sarek:~$ /usr/bin/ncal -M -C
> |      March 2017       
> | Mo Tu We Th Fr Sa Su  
> |        1  2  3  4  5  
> [..]
> 
> but now it no longer works either:
> 
> | weasel@orinoco:~$ /usr/bin/ncal -M -C
> | Usage: cal [general options] [-jy] [[month] year]
> |        cal [general options] [-j] [-m month] [year]
> [..]


--- ncal.orig   2017-03-20 14:15:52.201113223 +0100
+++ usr.bin/ncal/ncal.c 2017-03-20 14:17:00.412928824 +0100
@@ -376,10 +376,6 @@
                        weekstart = 0;
                        break;
                case 'M':
-                       if (flag_backward)
-                               usage();
-                       else
-                               no_backward = 1;
                        weekstart = 1;
                        break;
                default:

-- 
                            |  .''`.       ** Debian **
      Peter Palfrader       | : :' :      The  universal
 https://www.palfrader.org/ | `. `'      Operating System
                            |   `-    https://www.debian.org/

Reply via email to