Package: cvs
Version: 1:1.12.13-12
Severity: normal
Tags: patch
The script stored at /usr/share/doc/cvs/contrib/sccs2rcs.gz contains an
error in its logic. In SCCS, dates are stored in two digits and the
convention is that 70-99 are interpreted as 20th century while 00-69 are
interpreted as 21st century, sccs2rcs has this backwards in addition to
having the date range wrong.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.28.7 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cvs depends on:
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libpam-runtime 1.0.1-5 Runtime support for the PAM librar
ii libpam0g 1.0.1-5 Pluggable Authentication Modules l
ii update-inetd 4.31 inetd configuration file updater
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages cvs recommends:
ii info [info-browser] 4.11.dfsg.1-4 Standalone GNU Info documentation
ii netbase 4.34 Basic TCP/IP networking system
cvs suggests no packages.
-- debconf information excluded
--- sccs2rcs.in.old 2009-03-07 03:43:52.877014728 -0800
+++ sccs2rcs.in 2009-03-07 03:44:48.652879874 -0800
@@ -219,7 +219,7 @@
# we expected in the output we have other problems.
# Note: Solaris awk does not like the following line. Use gawk
# mawk, or nawk instead.
- set date = `sccs prs -r$rev $file | @AWK@ '/^D / {print
(substr($3,0,2)+0<70?20:19) $3, $4; exit}'`
+ set date = `sccs prs -r$rev $file | @AWK@ '/^D / {print
(substr($3,0,2)+0<69?19:20) $3, $4; exit}'`
set author = `sccs prs -r$rev $file | @AWK@ '/^D / {print $5; exit}'`
echo ""
echo "==> file $file, rev=$rev, date=$date, author=$author"