Patch Name: PHCO_18067 Patch Description: s700_800 10.16 rcs(1) Year 2000 cumulative patch Creation Date: 99/03/23 Post Date: 99/03/31 Hardware Platforms - OS Releases: s700: 10.16 s800: 10.16 Products: N/A Filesets: SourceControl.SRC-CNTL SourceControl.SRC-ENG-A-MAN Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_18067 Symptoms: PHCO_18067: Repackaged 10.01 patch PHCO_16962 for 10.16 rcs ci -k option is not year 2000 compliant rcs co -d option is not year 2000 compliant PHCO_17442: Repackaged 10.01 patch PHCO_16018 for 10.16 PHCO_11812: Some of the rcs calls do not handle dates after 1999. Defect Description: PHCO_18067: Repackaged 10.01 patch PHCO_16962 for 10.16 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 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. PHCO_17442: Repackaged 10.01 patch PHCO_16018 for 10.16 (PHCO_16018) HP rcs is 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. (PHCO_10110) rlog: option -d, the locale of the date input will be in the mm/dd/yy fixed format. co: option -d, the locale of the date input will be in the mm/dd/yy fixed format. Resolution: Ported PHCO_16018 to 10.16 PHCO_11812: Some of the rcs calls do not handle dates after 1999. SR: 5003435529 1653278853 4701397638 4701334763 Patch Files: /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 /usr/share/man/man1.Z/co.1 what(1) Output: /usr/bin/ci: $Revision: 74.1.13.8 $ PATCH_10_01: ../hpux_rel.o ci.o 99/02/08 /usr/bin/co: $Revision: 74.1.13.8 $ PATCH_10_01: ../hpux_rel.o co.o 99/02/08 /usr/bin/ident: $Revision: 74.1.13.8 $ PATCH_10_01: ident.o ../hpux_rel.o 99/02/08 /usr/bin/merge: None /usr/bin/rcs: $Revision: 74.1.13.8 $ PATCH_10_01: rcs.o ../hpux_rel.o 99/02/08 /usr/bin/rcsdiff: $Revision: 74.1.13.8 $ PATCH_10_01: rcsdiff.o ../hpux_rel.o 99/02/08 /usr/bin/rcsmerge: $Revision: 74.1.13.8 $ PATCH_10_01: rcsmerge.o ../hpux_rel.o 99/02/08 /usr/bin/rlog: $Revision: 74.1.13.8 $ PATCH_10_01: rlog.o ../hpux_rel.o 99/02/08 /usr/lbin/rdiff: $Revision: 74.1.13.8 $ PATCH_10_01: diff.o diffreg.o ../hpux_rel.o 99/02/08 /usr/share/man/man1.Z/co.1: None cksum(1) Output: 3297971007 77824 /usr/bin/ci 2351936424 73728 /usr/bin/co 4068217873 12288 /usr/bin/ident 2010403416 1342 /usr/bin/merge 2576985715 77824 /usr/bin/rcs 4272598693 45056 /usr/bin/rcsdiff 1487530064 49152 /usr/bin/rcsmerge 1511285073 73728 /usr/bin/rlog 4239166957 24576 /usr/lbin/rdiff 73649100 5545 /usr/share/man/man1.Z/co.1 Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_11812 PHCO_17442 Equivalent Patches: PHCO_16962: s700: 10.01 s800: 10.01 Patch Package Size: 500 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_18067 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_18067.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_18067.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_18067. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_18067.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_18067.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None