svn commit: r196750 - head/contrib/ee

2009-09-01 Thread Andrey A. Chernov
Author: ache Date: Wed Sep 2 04:26:34 2009 New Revision: 196750 URL: http://svn.freebsd.org/changeset/base/196750 Log: 1) Use isprint() instead of hardcoded values to detect non-printable. 2) Use (unsigned char) cast in waddch() calls. It fix highlighting bug: sign extension of 8bit to the

svn commit: r196751 - head/contrib/ee

2009-09-01 Thread Andrey A. Chernov
Author: ache Date: Wed Sep 2 04:43:46 2009 New Revision: 196751 URL: http://svn.freebsd.org/changeset/base/196751 Log: Move locale.h out of NO_CATGETS define too (as setlocale() in prev. commit) Modified: head/contrib/ee/ee.c Modified: head/contrib/ee/ee.c

svn commit: r196752 - head/lib/libc/stdtime

2009-09-01 Thread Andrey A. Chernov
Author: ache Date: Wed Sep 2 04:56:30 2009 New Revision: 196752 URL: http://svn.freebsd.org/changeset/base/196752 Log: Use (unsigned char) cast for ctype macro Modified: head/lib/libc/stdtime/strptime.c Modified: head/lib/libc/stdtime/strptime.c

svn commit: r196788 - head/share/colldef

2009-09-03 Thread Andrey A. Chernov
Author: ache Date: Thu Sep 3 16:53:11 2009 New Revision: 196788 URL: http://svn.freebsd.org/changeset/base/196788 Log: Add lv_LV, move lt_LT to common part Added: head/share/colldef/la_LN.ISO8859-13.src - copied, changed from r196787, head/share/colldef/lt_LT.ISO8859-13.src Deleted:

svn commit: r196784 - head/etc/mtree

2009-09-03 Thread Andrey A. Chernov
Author: ache Date: Thu Sep 3 16:25:25 2009 New Revision: 196784 URL: http://svn.freebsd.org/changeset/base/196784 Log: Add la_LN.ISO8859-13 and lv_LV Modified: head/etc/mtree/BSD.usr.dist Modified: head/etc/mtree/BSD.usr.dist

svn commit: r196790 - head/share/mklocale

2009-09-03 Thread Andrey A. Chernov
Author: ache Date: Thu Sep 3 17:12:45 2009 New Revision: 196790 URL: http://svn.freebsd.org/changeset/base/196790 Log: Add lv_LV, move lt_LT to common part Added: head/share/mklocale/la_LN.ISO8859-13.src - copied unchanged from r196789, head/share/mklocale/lt_LT.ISO8859-13.src Deleted:

svn commit: r196792 - head/share/numericdef

2009-09-03 Thread Andrey A. Chernov
Author: ache Date: Thu Sep 3 17:37:23 2009 New Revision: 196792 URL: http://svn.freebsd.org/changeset/base/196792 Log: Add lv_LV Modified: head/share/numericdef/Makefile Modified: head/share/numericdef/Makefile ==

svn commit: r196812 - head/share/monetdef

2009-09-03 Thread Andrey A. Chernov
Author: ache Date: Fri Sep 4 05:54:45 2009 New Revision: 196812 URL: http://svn.freebsd.org/changeset/base/196812 Log: Add lv_LV PR: 105100 Submitted by: Aldis Berjoza killasmur...@gmail.com Added: head/share/monetdef/lv_LV.ISO8859-13.src (contents, props changed)

svn commit: r196813 - head/share/msgdef

2009-09-04 Thread Andrey A. Chernov
Author: ache Date: Fri Sep 4 06:19:37 2009 New Revision: 196813 URL: http://svn.freebsd.org/changeset/base/196813 Log: Add lv_LV PR: 105100 Submitted by: Aldis Berjoza killasmur...@gmail.com Added: head/share/msgdef/lv_LV.ISO8859-13.src (contents, props changed)

svn commit: r196814 - head/share/timedef

2009-09-04 Thread Andrey A. Chernov
Author: ache Date: Fri Sep 4 06:26:40 2009 New Revision: 196814 URL: http://svn.freebsd.org/changeset/base/196814 Log: Add lv_LV PR: 105100 Submitted by: Aldis Berjoza killasmur...@gmail.com Added: head/share/timedef/lv_LV.ISO8859-13.src (contents, props changed)

svn commit: r196818 - head/contrib/ee

2009-09-04 Thread Andrey A. Chernov
Author: ache Date: Fri Sep 4 07:42:13 2009 New Revision: 196818 URL: http://svn.freebsd.org/changeset/base/196818 Log: 1) Remove single occurance of HAS_CTYPE ifdef, ctype functions used here for a long time and needs their header in anycase. 2) Add (unsigned char) casts to more ctype

svn commit: r196819 - head/usr.bin/ee

2009-09-04 Thread Andrey A. Chernov
Author: ache Date: Fri Sep 4 07:44:27 2009 New Revision: 196819 URL: http://svn.freebsd.org/changeset/base/196819 Log: Remove single occurance of HAS_CTYPE ifdef, ctype functions used here for a long time and needs their header in anycase. Modified: head/usr.bin/ee/Makefile Modified:

svn commit: r207701 - head/usr.bin/calendar

2010-05-06 Thread Andrey A. Chernov
Author: ache Date: Thu May 6 16:37:50 2010 New Revision: 207701 URL: http://svn.freebsd.org/changeset/base/207701 Log: Fix recent space skipping: 1) add missing (unsigned char) cast to ctype() macro 2) fix off-by-one error causing last letter always doubled Modified:

svn commit: r207703 - head/usr.bin/calendar

2010-05-06 Thread Andrey A. Chernov
Author: ache Date: Thu May 6 16:54:46 2010 New Revision: 207703 URL: http://svn.freebsd.org/changeset/base/207703 Log: While I am here, add more missing (unsigned char) casts to ctype() macros Modified: head/usr.bin/calendar/io.c head/usr.bin/calendar/parsedata.c Modified:

svn commit: r202556 - head/lib/libc/gen

2010-01-18 Thread Andrey A. Chernov
Author: ache Date: Mon Jan 18 10:17:51 2010 New Revision: 202556 URL: http://svn.freebsd.org/changeset/base/202556 Log: a) Use strcoll() in opendir() and alphasort() as POSIX 2008 requires. It also matches now how our 'ls' works for years. b) Remove comment expressed 2 fears: 1)

svn commit: r202572 - head/lib/libc/gen

2010-01-18 Thread Andrey A. Chernov
Author: ache Date: Mon Jan 18 13:44:44 2010 New Revision: 202572 URL: http://svn.freebsd.org/changeset/base/202572 Log: Double checking my commit I found that comment saying that POSIX 2008 and XSI 7require strcoll() for opendir() is not true. I can't find such requirement in POSIX 2008 and

svn commit: r202677 - head/lib/libc/gen

2010-01-19 Thread Andrey A. Chernov
Author: ache Date: Wed Jan 20 07:27:56 2010 New Revision: 202677 URL: http://svn.freebsd.org/changeset/base/202677 Log: Style: remove extra empty line in the comment. Pointed by: bde Modified: head/lib/libc/gen/scandir.c Modified: head/lib/libc/gen/scandir.c

svn commit: r202679 - head/lib/libc/gen

2010-01-19 Thread Andrey A. Chernov
Author: ache Date: Wed Jan 20 07:36:29 2010 New Revision: 202679 URL: http://svn.freebsd.org/changeset/base/202679 Log: Style: rename internal function to opendir_compar() Pointed by: bde Modified: head/lib/libc/gen/opendir.c Modified: head/lib/libc/gen/opendir.c

svn commit: r202691 - head/lib/libc/gen

2010-01-20 Thread Andrey A. Chernov
Author: ache Date: Wed Jan 20 11:55:14 2010 New Revision: 202691 URL: http://svn.freebsd.org/changeset/base/202691 Log: For alphasort() add reference to strcoll(3) Modified: head/lib/libc/gen/scandir.3 Modified: head/lib/libc/gen/scandir.3

svn commit: r202693 - head/lib/libc/gen

2010-01-20 Thread Andrey A. Chernov
Author: ache Date: Wed Jan 20 11:59:46 2010 New Revision: 202693 URL: http://svn.freebsd.org/changeset/base/202693 Log: Style: reword comment. Submitted by: bde Modified: head/lib/libc/gen/scandir.c Modified: head/lib/libc/gen/scandir.c

svn commit: r184161 - head/sys/i386/i386

2008-10-22 Thread Andrey A. Chernov
Author: ache Date: Wed Oct 22 14:45:30 2008 New Revision: 184161 URL: http://svn.freebsd.org/changeset/base/184161 Log: Fix compiler error with missing/unneded ')' Modified: head/sys/i386/i386/identcpu.c Modified: head/sys/i386/i386/identcpu.c

svn commit: r204803 - head/usr.bin/uniq

2010-03-06 Thread Andrey A. Chernov
Author: ache Date: Sat Mar 6 19:21:57 2010 New Revision: 204803 URL: http://svn.freebsd.org/changeset/base/204803 Log: 1) Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to binary equal check instead. POSIX says: The input file

svn commit: r204811 - head/usr.bin/uniq

2010-03-06 Thread Andrey A. Chernov
Author: ache Date: Sat Mar 6 22:38:38 2010 New Revision: 204811 URL: http://svn.freebsd.org/changeset/base/204811 Log: Remove vestiges of old %-format which prevents build on amd64 Modified: head/usr.bin/uniq/uniq.c Modified: head/usr.bin/uniq/uniq.c

svn commit: r204876 - head/usr.bin/uniq

2010-03-08 Thread Andrey A. Chernov
Author: ache Date: Mon Mar 8 19:40:22 2010 New Revision: 204876 URL: http://svn.freebsd.org/changeset/base/204876 Log: 1) Reimplement (differently) unlimited line length restricted in prev. commit. 2) Honor missing the very last \n (if absent) on output. Modified:

svn commit: r204896 - head/usr.bin/comm

2010-03-08 Thread Andrey A. Chernov
Author: ache Date: Mon Mar 8 22:27:46 2010 New Revision: 204896 URL: http://svn.freebsd.org/changeset/base/204896 Log: Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to binary comparison instead. POSIX says: The input files shall

svn commit: r204927 - head/usr.bin/uniq

2010-03-09 Thread Andrey A. Chernov
Author: ache Date: Tue Mar 9 21:06:01 2010 New Revision: 204927 URL: http://svn.freebsd.org/changeset/base/204927 Log: Add SIZE_MAX overflow check Modified: head/usr.bin/uniq/uniq.c Modified: head/usr.bin/uniq/uniq.c

svn commit: r204928 - head/usr.bin/comm

2010-03-09 Thread Andrey A. Chernov
Author: ache Date: Tue Mar 9 21:06:17 2010 New Revision: 204928 URL: http://svn.freebsd.org/changeset/base/204928 Log: Add SIZE_MAX overflow check Modified: head/usr.bin/comm/comm.c Modified: head/usr.bin/comm/comm.c

svn commit: r236582 - head/lib/libc/stdlib

2012-06-04 Thread Andrey A. Chernov
Author: ache Date: Mon Jun 4 21:34:49 2012 New Revision: 236582 URL: http://svn.freebsd.org/changeset/base/236582 Log: 1) IEEE Std 1003.1-2008, errno section, is explicit that The setting of errno after a successful call to a function is unspecified unless the description of that

svn commit: r236618 - head/lib/libc/stdlib

2012-06-05 Thread Andrey A. Chernov
Author: ache Date: Tue Jun 5 16:16:33 2012 New Revision: 236618 URL: http://svn.freebsd.org/changeset/base/236618 Log: 1) Although unpublished version of standard http://austingroupbugs.net/view.php?id=385#c713 (Resolved state) recommend this way for the current standard (called earlier

svn commit: r236885 - stable/9/lib/libc/stdlib

2012-06-11 Thread Andrey A. Chernov
Author: ache Date: Mon Jun 11 11:59:29 2012 New Revision: 236885 URL: http://svn.freebsd.org/changeset/base/236885 Log: MFC 236582,236618 - remove unused serrno variable Modified: stable/9/lib/libc/stdlib/realpath.c (contents, props changed) Modified: stable/9/lib/libc/stdlib/realpath.c

svn commit: r236978 - stable/9/lib/libc/stdlib

2012-06-12 Thread Andrey A. Chernov
Author: ache Date: Wed Jun 13 00:12:47 2012 New Revision: 236978 URL: http://svn.freebsd.org/changeset/base/236978 Log: Forget to propogate mergeinfo to directories Modified: Directory Properties: stable/9/lib/libc/ (props changed) stable/9/lib/libc/stdlib/realpath.c (props changed)

svn commit: r237777 - head/usr.sbin/vidcontrol

2012-06-29 Thread Andrey A. Chernov
Author: ache Date: Fri Jun 29 12:55:36 2012 New Revision: 23 URL: http://svn.freebsd.org/changeset/base/23 Log: Call set_terminal_mode() after video mode change, not before, because video mode change always reset terminal mode to xterm. It allows things like 'vidcontrol -T cons25

svn commit: r252608 - in head: include lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 3 21:21:54 2013 New Revision: 252608 URL: http://svnweb.freebsd.org/changeset/base/252608 Log: 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffe] range, so

svn commit: r252648 - head/lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 3 23:27:04 2013 New Revision: 252648 URL: http://svnweb.freebsd.org/changeset/base/252648 Log: In addition to prev. commit, for repeated rand_r(3) calls don't forget to compensate back at the end incremented at the start internal state. MFC after: 2

svn commit: r252668 - head/lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Thu Jul 4 00:02:10 2013 New Revision: 252668 URL: http://svnweb.freebsd.org/changeset/base/252668 Log: After fixing ranges restore POSIX requirement: rand() call without srand() must be the same as srand(1); rand(); (yet one increment) Modified:

svn commit: r252698 - head/lib/libc/stdlib

2013-07-04 Thread Andrey A. Chernov
Author: ache Date: Thu Jul 4 12:35:39 2013 New Revision: 252698 URL: http://svnweb.freebsd.org/changeset/base/252698 Log: Style fix noted by bde@ Modified: head/lib/libc/stdlib/rand.c Modified: head/lib/libc/stdlib/rand.c

svn commit: r246913 - head/etc

2013-02-17 Thread Andrey A. Chernov
Author: ache Date: Sun Feb 17 13:06:59 2013 New Revision: 246913 URL: http://svnweb.freebsd.org/changeset/base/246913 Log: In 'make hierarchy' don't install /sys/sys pointing to usr/src/sys but just /sys pointing there Modified: head/etc/Makefile Modified: head/etc/Makefile

svn commit: r247162 - head/etc

2013-02-22 Thread Andrey A. Chernov
Author: ache Date: Fri Feb 22 19:57:18 2013 New Revision: 247162 URL: http://svnweb.freebsd.org/changeset/base/247162 Log: Back out prev. change preventing /sys/sys symlink. It appears my install was not very recent and not acts like 'ln -h' Modified: head/etc/Makefile Modified:

svn commit: r249631 - in head/sys: dev/random libkern sys

2013-04-18 Thread Andrey A. Chernov
Author: ache Date: Fri Apr 19 00:30:52 2013 New Revision: 249631 URL: http://svnweb.freebsd.org/changeset/base/249631 Log: Attempt to mitigate poor initialization of arc4 by one-shot reinitialization from yarrow right after good entropy is harvested. Approved by:secteam (delphij)

svn commit: r249915 - in stable/9/sys: dev/random libkern sys

2013-04-25 Thread Andrey A. Chernov
Author: ache Date: Fri Apr 26 01:56:58 2013 New Revision: 249915 URL: http://svnweb.freebsd.org/changeset/base/249915 Log: MFC r249631 Attempt to mitigate poor initialization of arc4 by one-shot reinitialization from yarrow right after good entropy is harvested. Approved by:

svn commit: r241137 - head/lib/libc/stdlib

2012-10-02 Thread Andrey A. Chernov
Author: ache Date: Tue Oct 2 17:44:08 2012 New Revision: 241137 URL: http://svn.freebsd.org/changeset/base/241137 Log: Using putenv() and later direct pointer contents modification it is possibe to craft environment variables with similar names like that: a=1 a=2 ... unsetenv(a)

svn commit: r241154 - head/lib/libc/stdlib

2012-10-02 Thread Andrey A. Chernov
Author: ache Date: Wed Oct 3 04:46:58 2012 New Revision: 241154 URL: http://svn.freebsd.org/changeset/base/241154 Log: Optimize prev. commit for speed. 1) Don't iterate the loop from the environment array beginning each time, iterate it under the last place we deactivate instead. 2) Call

svn commit: r241483 - stable/9/lib/libc/stdlib

2012-10-12 Thread Andrey A. Chernov
Author: ache Date: Fri Oct 12 13:17:19 2012 New Revision: 241483 URL: http://svn.freebsd.org/changeset/base/241483 Log: MFC r241137,r241154 Using putenv() and later direct pointer contents modification it is possibe to craft environment variables with similar names like that: a=1 a=2

svn commit: r238158 - stable/9/usr.sbin/vidcontrol

2012-07-05 Thread Andrey A. Chernov
Author: ache Date: Fri Jul 6 01:32:53 2012 New Revision: 238158 URL: http://svn.freebsd.org/changeset/base/238158 Log: MFC r23 Call set_terminal_mode() after video mode change, not before, because video mode change always reset terminal mode to xterm. It allows things like

svn commit: r238741 - head/lib/libelf

2012-07-24 Thread Andrey A. Chernov
Author: ache Date: Tue Jul 24 16:03:28 2012 New Revision: 238741 URL: http://svn.freebsd.org/changeset/base/238741 Log: Don't ever build files depending on the directory where they are placed in. It is obvious that its modification time will change with each such file builded. This bug

svn commit: r238795 - in head/sys/boot: ficl zfs

2012-07-26 Thread Andrey A. Chernov
Author: ache Date: Thu Jul 26 10:10:54 2012 New Revision: 238795 URL: http://svn.freebsd.org/changeset/base/238795 Log: Try to avoid all files dependence on the modification time of the large and often modified directory created symbolic links points to - it cause unnecessary full rebuilds

svn commit: r238992 - in stable/9/sys/boot: ficl zfs

2012-08-02 Thread Andrey A. Chernov
Author: ache Date: Thu Aug 2 15:13:12 2012 New Revision: 238992 URL: http://svn.freebsd.org/changeset/base/238992 Log: MFC r238795 Try to avoid all files dependence on the modification time of the large and often modified directory created symbolic links points to - it cause

svn commit: r239477 - head/contrib/openresolv

2012-08-21 Thread Andrey A. Chernov
Author: ache Date: Tue Aug 21 06:14:08 2012 New Revision: 239477 URL: http://svn.freebsd.org/changeset/base/239477 Log: According to resolvconf.conf(5) manpage and sources, there is no 'nameservers' option which used in examples in resolvconf.conf(5), it spelled 'name_servers', so fix

svn commit: r239708 - stable/9/contrib/openresolv

2012-08-25 Thread Andrey A. Chernov
Author: ache Date: Sun Aug 26 05:20:32 2012 New Revision: 239708 URL: http://svn.freebsd.org/changeset/base/239708 Log: MFC r239477 According to resolvconf.conf(5) manpage and sources, there is no 'nameservers' option which used in examples in resolvconf.conf(5), it spelled

svn commit: r244362 - head/gnu/usr.bin/binutils/as

2012-12-17 Thread Andrey A. Chernov
Author: ache Date: Mon Dec 17 19:17:10 2012 New Revision: 244362 URL: http://svnweb.freebsd.org/changeset/base/244362 Log: Fix: line 11: Malformed conditional (${TARGET} == arm || ${TARGET_ARCH} == powerpc64) Modified: head/gnu/usr.bin/binutils/as/Makefile Modified:

svn commit: r244377 - head/gnu/usr.bin/binutils/as

2012-12-17 Thread Andrey A. Chernov
Author: ache Date: Tue Dec 18 04:44:36 2012 New Revision: 244377 URL: http://svnweb.freebsd.org/changeset/base/244377 Log: More correct version of prev. fix. Modified: head/gnu/usr.bin/binutils/as/Makefile Modified: head/gnu/usr.bin/binutils/as/Makefile

svn commit: r210853 - head/lib/libc/stdlib

2010-08-04 Thread Andrey A. Chernov
Author: ache Date: Thu Aug 5 01:39:25 2010 New Revision: 210853 URL: http://svn.freebsd.org/changeset/base/210853 Log: Comment out IEEE Std 1003.1-2001 conformance proclaimed too early, see problems described in the comment to: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/128933

svn commit: r226889 - head/usr.bin/sed

2011-10-28 Thread Andrey A. Chernov
Author: ache Date: Fri Oct 28 20:28:13 2011 New Revision: 226889 URL: http://svn.freebsd.org/changeset/base/226889 Log: Update '}' description to reflect reality (and POSIX) PR: 96236 Submitted by: Andreas Kohn andr...@syndrom23.de MFC after: 7 days Modified:

svn commit: r226895 - head/usr.bin/sed

2011-10-29 Thread Andrey A. Chernov
Author: ache Date: Sat Oct 29 06:13:47 2011 New Revision: 226895 URL: http://svn.freebsd.org/changeset/base/226895 Log: Reword '}' description to sound more clear. Submitted by: dougb MFC after: 7 days Modified: head/usr.bin/sed/sed.1 Modified: head/usr.bin/sed/sed.1

svn commit: r227076 - stable/9/usr.bin/sed

2011-11-04 Thread Andrey A. Chernov
Author: ache Date: Fri Nov 4 11:14:04 2011 New Revision: 227076 URL: http://svn.freebsd.org/changeset/base/227076 Log: MFC r226889,226895: or word in '}' description gives false impression that newline can be replaced by space. Reflect reality and POSIX. PR: 96236

svn commit: r268991 - head/lib/libc/stdio

2014-07-22 Thread Andrey A. Chernov
Author: ache Date: Tue Jul 22 19:55:25 2014 New Revision: 268991 URL: http://svnweb.freebsd.org/changeset/base/268991 Log: Checking for __SAPP alone is not enough because it is emulated O_APPEND only, so works for only special fdopen() case. Add real O_APPEND too. Modified:

svn commit: r268992 - head/lib/libc/stdio

2014-07-22 Thread Andrey A. Chernov
Author: ache Date: Tue Jul 22 20:13:46 2014 New Revision: 268992 URL: http://svnweb.freebsd.org/changeset/base/268992 Log: Back the whole change out until I figure out how to obtain O_APPEND, it can't be used in this field at all. Modified: head/lib/libc/stdio/ftell.c Modified:

svn commit: r268997 - head/lib/libc/stdio

2014-07-22 Thread Andrey A. Chernov
Author: ache Date: Tue Jul 22 22:49:37 2014 New Revision: 268997 URL: http://svnweb.freebsd.org/changeset/base/268997 Log: For a-mode files and rewind/fseek + fwrite combination return meaningful value now, like Apple does, but avoid their __sflush physical write performance degradation as

svn commit: r269116 - head/lib/libc/stdio

2014-07-26 Thread Andrey A. Chernov
Author: ache Date: Sat Jul 26 08:41:03 2014 New Revision: 269116 URL: http://svnweb.freebsd.org/changeset/base/269116 Log: In the Too many open files edge cases don't try to preserve old number for non-std* descriptors, but close old file and retry. Obtained from: inspired by Apple's

svn commit: r269623 - stable/10/lib/libc/stdio

2014-08-06 Thread Andrey A . Chernov
Author: ache Date: Wed Aug 6 10:33:43 2014 New Revision: 269623 URL: http://svnweb.freebsd.org/changeset/base/269623 Log: MFC: r268997 For a-mode files and rewind/fseek + fwrite combination return meaningful value now, like Apple does, but avoid their __sflush physical write

svn commit: r269624 - stable/10/lib/libc/stdio

2014-08-06 Thread Andrey A . Chernov
Author: ache Date: Wed Aug 6 10:38:06 2014 New Revision: 269624 URL: http://svnweb.freebsd.org/changeset/base/269624 Log: MFC: r269116 In the Too many open files edge cases don't try to preserve old number for non-std* descriptors, but close old file and retry. Obtained from:

svn commit: r269806 - in head/contrib/opie: . libopie

2014-08-11 Thread Andrey A . Chernov
Author: ache Date: Mon Aug 11 12:26:48 2014 New Revision: 269806 URL: http://svnweb.freebsd.org/changeset/base/269806 Log: Fix too long (seed length 12 chars) challenge handling. 1) ext length should be included into OPIE_CHALLENGE_MAX (as all places of opie code expects that). 2)

svn commit: r269809 - head/contrib/opie

2014-08-11 Thread Andrey A . Chernov
Author: ache Date: Mon Aug 11 13:36:02 2014 New Revision: 269809 URL: http://svnweb.freebsd.org/changeset/base/269809 Log: When sha1 support was added, they forget to increase OPIE_HASHNAME_MAX MFC after: 1 week Modified: head/contrib/opie/opie.h Modified: head/contrib/opie/opie.h

svn commit: r269810 - head/usr.bin/opiekey

2014-08-11 Thread Andrey A . Chernov
Author: ache Date: Mon Aug 11 14:37:57 2014 New Revision: 269810 URL: http://svnweb.freebsd.org/changeset/base/269810 Log: Link otp-sha1 to match real challenge prompt, not otp-sha MFC after: 1 week Modified: head/usr.bin/opiekey/Makefile Modified: head/usr.bin/opiekey/Makefile

svn commit: r269811 - head/contrib/opie

2014-08-11 Thread Andrey A . Chernov
Author: ache Date: Mon Aug 11 14:46:09 2014 New Revision: 269811 URL: http://svnweb.freebsd.org/changeset/base/269811 Log: Last '/' for program name, not first one MFC after: 1 week Modified: head/contrib/opie/opiekey.c Modified: head/contrib/opie/opiekey.c

svn commit: r269815 - head

2014-08-11 Thread Andrey A . Chernov
Author: ache Date: Mon Aug 11 15:41:55 2014 New Revision: 269815 URL: http://svnweb.freebsd.org/changeset/base/269815 Log: Add otp-sha MFC after: 1 week Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

svn commit: r269875 - head/lib/libpam/modules/pam_opie

2014-08-12 Thread Andrey A . Chernov
Author: ache Date: Tue Aug 12 13:28:46 2014 New Revision: 269875 URL: http://svnweb.freebsd.org/changeset/base/269875 Log: According to opie code and even direct mention in opie(4) challenge buffer size must be OPIE_CHALLENGE_MAX + 1, not OPIE_CHALLENGE_MAX Reviewed by:des MFC

svn commit: r269961 - in head: . lib/libopie

2014-08-13 Thread Andrey A. Chernov
Author: ache Date: Thu Aug 14 04:42:09 2014 New Revision: 269961 URL: http://svnweb.freebsd.org/changeset/base/269961 Log: Bump version because challenge buffer size changed MFC after: 1 week Modified: head/ObsoleteFiles.inc head/lib/libopie/Makefile Modified:

svn commit: r270120 - in stable/10: contrib/opie contrib/opie/libopie usr.bin/opiekey

2014-08-17 Thread Andrey A. Chernov
Author: ache Date: Mon Aug 18 02:13:45 2014 New Revision: 270120 URL: http://svnweb.freebsd.org/changeset/base/270120 Log: MFC: r269806,r269809,r269811,r269810 r269806: Fix too long (seed length 12 chars) challenge handling. 1) ext length should be included into OPIE_CHALLENGE_MAX (as

svn commit: r270121 - stable/10

2014-08-17 Thread Andrey A. Chernov
Author: ache Date: Mon Aug 18 02:32:48 2014 New Revision: 270121 URL: http://svnweb.freebsd.org/changeset/base/270121 Log: Direct commit to stable/10 reflecting r269815 because rest can't be merged Add otp-sha Modified: stable/10/ObsoleteFiles.inc Modified: stable/10/ObsoleteFiles.inc

svn commit: r270122 - in stable/10: . lib/libopie

2014-08-17 Thread Andrey A. Chernov
Author: ache Date: Mon Aug 18 02:42:23 2014 New Revision: 270122 URL: http://svnweb.freebsd.org/changeset/base/270122 Log: Direct commit to stable/10 reflecting r269961 because the rest can't be merged. Bump version because challenge buffer size changed. Modified:

svn commit: r270125 - stable/10/lib/libpam/modules/pam_opie

2014-08-17 Thread Andrey A. Chernov
Author: ache Date: Mon Aug 18 03:06:49 2014 New Revision: 270125 URL: http://svnweb.freebsd.org/changeset/base/270125 Log: MFC: r269875 According to opie code and even direct mention in opie(4) challenge buffer size must be OPIE_CHALLENGE_MAX + 1, not OPIE_CHALLENGE_MAX Reviewed by:

svn commit: r253607 - in stable/9: include lib/libc/stdlib

2013-07-24 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 24 10:12:50 2013 New Revision: 253607 URL: http://svnweb.freebsd.org/changeset/base/253607 Log: 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffe] range, so

svn commit: r253810 - head/usr.bin/grep/regex

2013-07-30 Thread Andrey A. Chernov
Author: ache Date: Tue Jul 30 18:16:43 2013 New Revision: 253810 URL: http://svnweb.freebsd.org/changeset/base/253810 Log: grep -i does not work for simple patterns and single byte locales, like LANG=ru_RU.KOI8-R grep -i some single KOI8-R letter Fix it. MFC after: 3 days

svn commit: r253888 - stable/9/usr.bin/grep/regex

2013-08-02 Thread Andrey A. Chernov
Author: ache Date: Fri Aug 2 17:13:29 2013 New Revision: 253888 URL: http://svnweb.freebsd.org/changeset/base/253888 Log: MFC r253810 grep -i does not work for simple patterns and single byte locales, like LANG=ru_RU.KOI8-R grep -i some single KOI8-R letter Fix it. Approved

svn commit: r254091 - head/lib/libc/gen

2013-08-08 Thread Andrey A. Chernov
Author: ache Date: Thu Aug 8 09:04:02 2013 New Revision: 254091 URL: http://svnweb.freebsd.org/changeset/base/254091 Log: According to POSIX \ in the fnmatch(3) pattern should escape any character including '\0', but our version replace escaped '\0' with '\\'. I.e. fnmatch(\\, \\, 0)

svn commit: r254093 - head/gnu/usr.bin/grep

2013-08-08 Thread Andrey A. Chernov
Author: ache Date: Thu Aug 8 11:53:47 2013 New Revision: 254093 URL: http://svnweb.freebsd.org/changeset/base/254093 Log: Part of r245761 makes grep -D skip broken for pipes, i.e. echo xxx | grep -D skip xxx returns nothing. Instead of just removing added S_ISFIFO condition

svn commit: r254353 - stable/9/lib/libc/gen

2013-08-14 Thread Andrey A. Chernov
Author: ache Date: Thu Aug 15 04:27:10 2013 New Revision: 254353 URL: http://svnweb.freebsd.org/changeset/base/254353 Log: MFC: r254091 According to POSIX \ in the fnmatch(3) pattern should escape any character including '\0', but our version replace escaped '\0' with '\\'. I.e.

svn commit: r267756 - head/lib/libc/stdlib

2014-06-22 Thread Andrey A. Chernov
Author: ache Date: Sun Jun 22 21:54:57 2014 New Revision: 267756 URL: http://svnweb.freebsd.org/changeset/base/267756 Log: Merge intermediate OpenBSD v1.25 changes (almost identical to ours) to reduce diff and bump OpenBSD patch level to v1.26. MFC after: 2 weeks Modified:

svn commit: r267758 - head

2014-06-22 Thread Andrey A. Chernov
Author: ache Date: Mon Jun 23 00:54:56 2014 New Revision: 267758 URL: http://svnweb.freebsd.org/changeset/base/267758 Log: Change suggestion how to set MAKESYSPATH as broken incremental build workaround. Magic .../share/mk (search directories up to /) does not work for f.e.

svn commit: r268355 - stable/10/lib/libc/stdlib

2014-07-06 Thread Andrey A. Chernov
Author: ache Date: Mon Jul 7 05:31:50 2014 New Revision: 268355 URL: http://svnweb.freebsd.org/changeset/base/268355 Log: MFC 267756: Merge intermediate OpenBSD v1.25 changes (almost identical to ours) to reduce diff and bump OpenBSD patch level to v1.26. Modified:

svn commit: r262964 - stable/10/share/mk

2014-03-09 Thread Andrey A. Chernov
Author: ache Date: Sun Mar 9 23:47:34 2014 New Revision: 262964 URL: http://svnweb.freebsd.org/changeset/base/262964 Log: MFC r262689: Add fetch and patch to .PHONY and .NOTMAIN only if PORTNAME is defined. Unconditional addition cause real fetch(1) and patch(1) programs are builded

svn commit: r261146 - head/usr.sbin/cron/cron

2014-01-24 Thread Andrey A. Chernov
Author: ache Date: Sat Jan 25 02:16:09 2014 New Revision: 261146 URL: http://svnweb.freebsd.org/changeset/base/261146 Log: Bad timespec_subtract() calculations produce negative tv_nsec on i386 which cause EINVAL returned from nanosleep() which cause loop in cron_sleep() and making all cron

svn commit: r261231 - stable/10/usr.sbin/cron/cron

2014-01-28 Thread Andrey A. Chernov
Author: ache Date: Tue Jan 28 13:29:54 2014 New Revision: 261231 URL: http://svnweb.freebsd.org/changeset/base/261231 Log: MFC: r261146 Bad timespec_subtract() calculations produce negative tv_nsec on i386 which cause EINVAL returned from nanosleep() which cause loop in cron_sleep()

svn commit: r262689 - head/share/mk

2014-03-02 Thread Andrey A. Chernov
Author: ache Date: Sun Mar 2 13:12:06 2014 New Revision: 262689 URL: http://svnweb.freebsd.org/changeset/base/262689 Log: Add fetch and patch to .PHONY and .NOTMAIN only if PORTNAME is defined. Unconditional addition cause real fetch(1) and patch(1) programs are builded every time.

svn commit: r272562 - head/lib/libc/stdtime

2014-10-05 Thread Andrey A. Chernov
Author: ache Date: Sun Oct 5 07:29:50 2014 New Revision: 272562 URL: https://svnweb.freebsd.org/changeset/base/272562 Log: 1) For %Z format, understand UTC name too. 2) Return NULL if timegm() fails, because it means we can convert what we have in GMT to local time needed. Modified:

svn commit: r272678 - head/lib/libc/stdtime

2014-10-07 Thread Andrey A. Chernov
Author: ache Date: Tue Oct 7 06:02:08 2014 New Revision: 272678 URL: https://svnweb.freebsd.org/changeset/base/272678 Log: Back out timegm error check from r272562. POSIX treats negative time_t as undefined (i.e. may be valid too, depends on system's policy we don't have) and we don't

svn commit: r272679 - head/lib/libc/stdtime

2014-10-07 Thread Andrey A. Chernov
Author: ache Date: Tue Oct 7 06:34:05 2014 New Revision: 272679 URL: https://svnweb.freebsd.org/changeset/base/272679 Log: 1) Fix the case we have less arguments for format string than we expected. 2) Return error on unsupported format specs. (both according to POSIX) PR: 93197

svn commit: r273290 - stable/10/lib/libc/stdtime

2014-10-19 Thread Andrey A. Chernov
Author: ache Date: Sun Oct 19 21:16:24 2014 New Revision: 273290 URL: https://svnweb.freebsd.org/changeset/base/273290 Log: MFC r272562,r272678,r272679 1) Fix the case we have less arguments for format string than we expected. 2) Return error on unsupported format specs. (both

svn commit: r285617 - head/tools/build/mk

2015-07-15 Thread Andrey A. Chernov
Author: ache Date: Thu Jul 16 02:08:54 2015 New Revision: 285617 URL: https://svnweb.freebsd.org/changeset/base/285617 Log: Comment out usr/sbin/mailwrapper removal because for no mailwrapper case we have: /usr/sbin/sendmail - /usr/sbin/mailwrapper /usr/sbin/mailwrapper -

svn commit: r289931 - head/lib/libc/stdio

2015-10-25 Thread Andrey A. Chernov
Author: ache Date: Sun Oct 25 12:09:28 2015 New Revision: 289931 URL: https://svnweb.freebsd.org/changeset/base/289931 Log: According to POSIX, a write operation shall start at the current size of the stream (if mode had 'a' as the first character). MFC after: 1 week Modified:

svn commit: r290110 - in head: include lib/libc/stdio

2015-10-28 Thread Andrey A. Chernov
Author: ache Date: Wed Oct 28 14:40:02 2015 New Revision: 290110 URL: https://svnweb.freebsd.org/changeset/base/290110 Log: Add _flags2 per jhb@ suggestion since no room left in _flags. Rewrite O_APPEND flag checking using new __S2OAP flag. MFC after: 3 weeks Modified:

svn commit: r289863 - head/lib/libc/stdio

2015-10-23 Thread Andrey A. Chernov
Author: ache Date: Sat Oct 24 02:23:15 2015 New Revision: 289863 URL: https://svnweb.freebsd.org/changeset/base/289863 Log: Since no room left in the _flags, reuse __SALC for O_APPEND. It helps to remove _fcntl() call from _ftello() and optimize seek position calculation in _swrite().

svn commit: r290546 - stable/10/usr.bin/bsdiff/bsdiff

2015-11-08 Thread Andrey A. Chernov
Author: ache Date: Sun Nov 8 14:22:57 2015 New Revision: 290546 URL: https://svnweb.freebsd.org/changeset/base/290546 Log: MFC: r290329,r290336 PR: 204230 r290329: Use meaningful errno for ssize_t overflow in read(). Catch size_t overflow in malloc(). r290336: Check for

svn commit: r290549 - head/lib/libc/stdio

2015-11-08 Thread Andrey A. Chernov
Author: ache Date: Sun Nov 8 18:00:44 2015 New Revision: 290549 URL: https://svnweb.freebsd.org/changeset/base/290549 Log: Reorganize code to elimitate one _sseek() call for append modes. MFC after: 1 week Modified: head/lib/libc/stdio/ftell.c Modified:

svn commit: r290544 - in stable/10: include lib/libc/stdio

2015-11-08 Thread Andrey A. Chernov
Author: ache Date: Sun Nov 8 13:37:16 2015 New Revision: 290544 URL: https://svnweb.freebsd.org/changeset/base/290544 Log: MFC: r289863,r289931,r290110,r290230,r290231,r290232 r290232: Microoptimize. r290231: Addition to prev. commit. In some edge cases fp->_p can be

svn commit: r290729 - head/lib/libc/stdio

2015-11-12 Thread Andrey A. Chernov
Author: ache Date: Thu Nov 12 22:24:39 2015 New Revision: 290729 URL: https://svnweb.freebsd.org/changeset/base/290729 Log: 1) Remove my overcomplicated error fallback and just return error immediatelly as old code does, now for append modes too. Real use case for such fallback is

svn commit: r290231 - head/lib/libc/stdio

2015-11-01 Thread Andrey A. Chernov
Author: ache Date: Sun Nov 1 06:47:05 2015 New Revision: 290231 URL: https://svnweb.freebsd.org/changeset/base/290231 Log: Addition to prev. commit. In some edge cases fp->_p can be changed in _sseek(), recalculate. PR: 204156 MFC after: 1 week Modified:

svn commit: r290232 - head/lib/libc/stdio

2015-11-01 Thread Andrey A. Chernov
Author: ache Date: Sun Nov 1 08:40:15 2015 New Revision: 290232 URL: https://svnweb.freebsd.org/changeset/base/290232 Log: Microoptimize. Modified: head/lib/libc/stdio/ftell.c Modified: head/lib/libc/stdio/ftell.c

svn commit: r290230 - head/lib/libc/stdio

2015-11-01 Thread Andrey A. Chernov
Author: ache Date: Sun Nov 1 06:15:14 2015 New Revision: 290230 URL: https://svnweb.freebsd.org/changeset/base/290230 Log: Don't seek to the end if write buffer is empty (in append modes). PR: 204156 MFC after: 1 week Modified: head/lib/libc/stdio/ftell.c Modified:

  1   2   3   >