Patch Name: PHCO_18328 Patch Description: s700_800 11.04 (VVOS) rcs(1) Year 2000 cumulative patch Creation Date: 99/04/21 Post Date: 99/09/02 Hardware Platforms - OS Releases: s700: 11.04 s800: 11.04 Products: N/A Filesets: SourceControl.SRC-CNTL,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_18328 Symptoms: PHCO_18328: Repackaged HP-UX patch PHCO_16965 for VVOS. Based on HP-UX patch PHCO_16965: rcs ci -k option is not year 2000 compliant. rcs co -d option is not year 2000 compliant. Based on HP-UX patch PHCO_16021: HP rcs incompatible with GNU rcs for years beyond 1999. GNU rcs uses 4 digit format for years beyond 1999 whereas HP rcs continues to use the 2 digit format. Defect Description: PHCO_18328: Repackaged HP-UX patch PHCO_16965 for VVOS. Based on HP-UX patch PHCO_16965: rcs ci -k issues an error message when an archive file is re-checked-in in the year 2000. rcs co -d option does not pick up the correct versions in the year 2000. Resolution: The generic function "cmpnum()" which compares two numbers was wrongly invoked to compare two dates. Now this has been replaced by function "cmpdate()" which compares two dates correctly. The function "cmpdate()" has been tested to be Y2K compliant. The function getprevdate() had hard coded assumptions about the date format. The assumption worked fine for dates before year 2000, like 99/01/01 which used to get converted to 99.01.01. However the assumption failed for year 2000 and beyond. For example 2000/01/01 used to get converted to 20.0/.1/.1 which is invalid. This function has now been corrected. After the installation of this patch, rcs ci -k will After the installation of this patch, rcs ci -k will not issue any error messages when an archive file is re-checked-in in the year 2000. The check-in of the archive file will be sucessfull. After the installation of this patch, rcs co -d will be able to check out the correct revisions in the year 2000. Based on HP-UX patch PHCO_16021: HP RCS generated archives (,v files) containing revisions created in the year 2000 and beyond will not be correctly parsed by the public domain GNU RCS and vice versa. The format of the time stamps in the rcs generated archives (,v files) has been changed such that all dates beyond year 1999 are represented using 4 digits and dates prior to year 2000 are represented using 2 digits. After the installation of this patch, HP rcs will be compatible with GNU rcs. All dates beyond year 1999 will be displayed using 4 digits and all dates prior to year 2000 will be displayed using 2 digits format. SR: 5003435529 1653278853 4701397638 Patch Files: SourceControl.SRC-CNTL,fr=B.11.04,fa=HP-UX_B.11.04_32/64, v=HP: /usr/bin/ci /usr/bin/co /usr/bin/ident /usr/bin/merge /usr/bin/rcs /usr/bin/rcsdiff /usr/bin/rcsmerge /usr/bin/rlog /usr/lbin/rdiff what(1) Output: SourceControl.SRC-CNTL,fr=B.11.04,fa=HP-UX_B.11.04_32/64, v=HP: /usr/bin/ci: $Revision: 82.5.1.5 $ PATCH_11_00: ../hpux_rel.o ci.o 99/02/09 /usr/bin/co: $Revision: 82.5.1.5 $ PATCH_11_00: ../hpux_rel.o co.o 99/02/09 /usr/bin/ident: $Revision: 82.5.1.5 $ PATCH_11_00: ident.o ../hpux_rel.o 99/02/09 /usr/bin/merge: None /usr/bin/rcs: $Revision: 82.5.1.5 $ PATCH_11_00: rcs.o ../hpux_rel.o 99/02/09 /usr/bin/rcsdiff: $Revision: 82.5.1.5 $ PATCH_11_00: rcsdiff.o ../hpux_rel.o 99/02/09 /usr/bin/rcsmerge: $Revision: 82.5.1.5 $ PATCH_11_00: rcsmerge.o ../hpux_rel.o 99/02/09 /usr/bin/rlog: $Revision: 82.5.1.5 $ PATCH_11_00: rlog.o ../hpux_rel.o 99/02/09 /usr/lbin/rdiff: $Revision: 82.5.1.5 $ PATCH_11_00: diff.o diffreg.o ../hpux_rel.o 99/02/09 cksum(1) Output: SourceControl.SRC-CNTL,fr=B.11.04,fa=HP-UX_B.11.04_32/64, v=HP: 165942993 90112 /usr/bin/ci 1073583177 86016 /usr/bin/co 3206265628 16384 /usr/bin/ident 2010403416 1342 /usr/bin/merge 3794417391 86016 /usr/bin/rcs 4093810938 53248 /usr/bin/rcsdiff 2676895256 53248 /usr/bin/rcsmerge 4267441379 81920 /usr/bin/rlog 4094611701 28672 /usr/lbin/rdiff Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHCO_16965: s700: 11.00 s800: 11.00 PHCO_16964: s700: 10.20 s800: 10.20 PHCO_17994: s700: 10.24 s800: 10.24 Patch Package Size: 510 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_18328 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_18328.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_18328. If you do not wish to retain a copy of the original software, use the patch_save_files option: swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHCO_18328.depot WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_18328.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_18328.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_18328.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None