Patch Name: PHSS_12617 Patch Description: s700_800 10.X OpenMail B.05.10 omscan corrupts mailboxes Creation Date: 97/09/19 Post Date: 97/09/24 Hardware Platforms - OS Releases: s700: 10.01 10.10 10.20 s800: 10.01 10.10 10.20 Products: OpenMail B.05.10 Filesets: OpenMail.OM-CORE,B.05.10 Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHSS_12617 Symptoms: PHSS_12617: D500328567 omscan with the -f option will corrupt all openmail users that have their user directoy in directories ~openmail/user0a, ~openmail/user0b .... etc. This will generall be the case in system where user ids greater than about 4000 (decimal). Defect Description: PHSS_12617: D500328567 There is a section of code in the 'scn_ScanUsers' function that checks to verify that the current user directory in question is infact a genuine Openmail user directory. To do this it checks to see that the characters after 'user' in the directory name are digits. The problem is that the characters after 'user' are in base32, and so can be 0-9 and a-v. Once the check has failed, all the directories not thought to be genuine Openmail directories are 'orphaned', leading to all users in these directories having their folders deleted. SR: D500328567 Patch Files: /opt/openmail/B.05.10.00/bin/omscan /opt/openmail/patch/ompatch /opt/openmail/patch/PHSS_12617/omunpatch /opt/openmail/patch/PHSS_12617/ompatch.idx what(1) Output: /opt/openmail/B.05.10.00/bin/omscan: $Header: scn_chkmnt.c,v 4.2 97/01/29 18:03:33 kevins Exp $ Sccs_Id = %W% $Header: scn_ctr.c,v 6.37 97/07/04 17:55:15 danny Ex p $ Sccs_Id = %W% $Header: scn_main.c,v 6.23 97/06/04 18:05:20 ann Exp $ Sccs_Id = %W% $Header: scn_orphan.c,v 6.19 97/05/29 11:15:26 markd Exp $ $Header: scn_report.c,v 6.13 97/06/06 09:36:35 kevin s Exp $ Sccs_Id = %W% Sccs_Id = %W% $Header: scn_desk.c,v 6.5 97/03/18 12:46:29 kevins E xp $ Sccs_Id = %W% $Header: scn_dir.c,v 6.5 97/03/18 12:46:51 kevins Ex p $ ---------------------------------------------------- ------------ PATCHED_B.05.10: 97/09/19 B.05.10.01 omscan ---------------------------------------------------- ------------ Sccs_Id = %W% $Header: scn_msg.c,v 6.7 97/03/18 13:46:15 kevins Ex p $ $Header: discon.c,v 1.2 93/09/15 11:45:05 steve Exp $ $Header: disdel.c,v 1.2 93/09/15 11:45:07 steve Exp $ $Header: keyfcns.c,v 1.4 93/09/15 11:47:41 steve Exp $ $Header: recnext.c,v 1.2 93/09/15 11:49:07 steve Exp $ $Header: fillnew.c,v 1.2 93/09/15 11:45:12 steve Exp $ $Header: keyfind.c,v 1.2 93/09/15 11:47:46 steve Exp $ $Header: connect.c,v 1.4 93/09/15 11:43:42 steve Exp $ $Header: findco.c,v 1.2 93/09/15 11:45:14 steve Exp $ $Header: findfm.c,v 1.3 93/09/15 11:45:17 steve Exp $ $Header: recread.c,v 1.2 93/09/15 11:49:19 steve Exp $ $Header: keynext.c,v 1.2 93/09/15 11:47:58 steve Exp $ $Header: crget.c,v 1.2 93/09/15 11:43:51 steve Exp $ $Header: findnm.c,v 1.2 93/09/15 11:45:23 steve Exp $ $Header: crread.c,v 1.2 93/09/15 11:43:53 steve Exp $ $Header: dbdpath.c,v 1.2 93/09/15 11:44:37 steve Exp $ $Header: recwrite.c,v 1.2 93/09/15 11:49:31 steve Ex p $ $Header: crset.c,v 1.2 93/09/15 11:43:56 steve Exp $ $Header: libfcns.c,v 1.3 93/09/15 11:48:12 steve Exp $ $Header: dbfpath.c,v 1.2 93/09/15 11:44:41 steve Exp $ $Header: crtype.c,v 1.3 93/09/15 11:44:02 steve Exp $ $Header: members.c,v 1.3 93/09/15 11:48:23 steve Exp $ $Header: setdb.c,v 1.2 93/09/15 11:49:44 steve Exp $ $Header: crwrite.c,v 1.2 93/09/15 11:44:05 steve Exp $ $Header: dblog.c,v 1.2 93/09/15 11:44:47 steve Exp $ $Header: dbtaf.c,v 1.2 93/09/15 11:44:51 steve Exp $ $Header: options.c,v 1.2 93/09/15 11:48:41 steve Exp $ $Header: dbuserid.c,v 1.3 93/09/15 11:44:54 steve Ex p $ $Header: delete.c,v 1.2 93/09/15 11:44:57 steve Exp $ $Header: destroy.c,v 1.2 93/09/15 11:44:59 steve Exp $ $Header: recfcns.c,v 1.6 93/09/15 11:48:55 steve Exp $ $Header: setor.c,v 1.2 93/09/15 11:50:11 steve Exp $ $Header: dio.c,v 1.5 97/04/30 17:50:56 steve Exp $ $Header: recfrst.c,v 1.2 93/09/15 11:48:59 steve Exp $ $Header: buildkey.c,v 1.4 93/09/15 11:43:34 steve Ex p $ $Header: gen.c,v 1.14 97/05/14 14:49:20 steve Exp $ $Header: dblfcns.c,v 1.25 97/05/14 14:49:48 steve Ex p $ $Header: alloc.c,v 1.5 93/09/15 11:43:31 steve Exp $ $Header: setro.c,v 1.2 93/09/15 11:50:20 steve Exp $ $Header: recover.c,v 1.5 97/04/30 18:11:39 steve Exp $ $Header: dberr.c,v 1.19 93/10/08 17:26:47 steve Exp $ $Header: renfile.c,v 1.2 93/09/15 11:49:35 steve Exp $ $Header: mapchar.c,v 1.2 93/09/15 11:48:19 steve Exp $ $Header: makenew.c,v 1.2 93/09/15 11:48:15 steve Exp $ $Header: trlog.c,v 1.2 93/09/15 11:50:47 steve Exp $ $Header: utscm.c,v 1.2 93/09/15 11:50:49 steve Exp $ $Header: utsco.c,v 1.2 93/09/15 11:50:52 steve Exp $ $Header: initenv.c,v 1.3 93/09/15 11:47:12 steve Exp $ $Header: opens.c,v 1.6 93/09/15 11:48:37 steve Exp $ $Header: utscr.c,v 1.2 93/09/15 11:50:54 steve Exp $ $Header: utscs.c,v 1.2 93/09/15 11:50:57 steve Exp $ $Header: csmset.c,v 1.2 93/09/15 11:44:13 steve Exp $ $Header: inittab.c,v 1.3 93/09/15 11:47:19 steve Exp $ $Header: ovfcns.c,v 1.5 97/04/30 18:15:24 steve Exp $ $Header: startup.c,v 1.2 93/09/15 11:50:24 steve Exp $ $Header: ismember.c,v 1.2 93/09/15 11:47:23 steve Ex p $ $Header: pathfcns.c,v 1.2 93/09/15 11:48:50 steve Ex p $ $Header: netgen.c,v 1.12 94/04/08 21:55:59 gren Exp $ $Header: genfcns.c,v 1.39 95/11/08 18:22:02 kevins E xp $ $Header: dropcore.c,v 1.5 93/09/15 11:45:10 steve Ex p $ /opt/openmail/patch/ompatch: $Header: sh_patch.gen,v 6.8 97/08/18 15:26:32 tonyn Exp $ /opt/openmail/patch/PHSS_12617/omunpatch: $Header: sh_unpat.gen,v /opt/openmail/patch/PHSS_12617/ompatch.idx: No what strings cksum(1) Output: 1098507840 282624 /opt/openmail/B.05.10.00/bin/omscan 3718018160 19199 /opt/openmail/patch/ompatch 2942316068 14275 /opt/openmail/patch/PHSS_12617/omunpatch 878975340 1223 /opt/openmail/patch/PHSS_12617/ompatch.idx Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHSS_12616: s700: 9.01 9.03 9.05 9.07 s800: 9.00 9.04 Patch Package Size: 380 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 PHSS_12617 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHSS_12617.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/PHSS_12617.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/PHSS_12617. 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 PHSS_12617.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/PHSS_12617.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: NOTE: OpenMail must be shutdown before installing this patch.