From ken@cac.washington.edu Wed Dec 20 09:36:58 1995 Return-Path: Received: from mx4.u.washington.edu by lists.u.washington.edu (5.65+UW95.12/UW-NDC Revision: 2.33 ) id AA28710; Wed, 20 Dec 95 09:36:57 -0800 Received: from dewey.cac.washington.edu by mx4.u.washington.edu (5.65+UW95.10/UW-NDC Revision: 2.33 ) id AA14135; Wed, 20 Dec 95 09:36:56 -0800 Received: by dewey.cac.washington.edu (5.65/UW-NDC Revision: 2.28 ) id AA28288; Wed, 20 Dec 95 09:36:55 -0800 Date: Wed, 20 Dec 95 09:36:55 -0800 From: Ken Lowe Message-Id: <9512201736.AA28288@dewey.cac.washington.edu> To: change-l@u.washington.edu Subject: 12/27: UA systems: cpdir to auto-patch files On Wednesday, December 27th, a new version of the cpdir utility will be installed that will automatically update files with absolute references to the source directory to point to the target directory. Cpdir is used by moveme or movedir to copy a user's files from one filesystem to another. If the user had a file with an absolute reference to their home directory this process would issue a warning indicating that the old path name was found in the file. If the process was being performed by the automated migration routine that levels off the disk usage, the user would be considered unmovable and it would skip to the next user. Unfortunately pine likes to create ".pine-crash" files and netscape likes to create ".netscape-preferences" files that contain hard absolute references to the user's home directory. There are enough of these now that the migrate process has trouble finding people that can be moved. Cpdir will now patch these files to point to the new home directory as the file is moved. This patch process will only take place if the source and target directory names are the same length (which they nearly always are in the automated migration). As we can't really be sure that an arbitrary file will continue to work after it has been patched (eg: an executable), cpdir has a list of files that are okay for it to patch. Any other files will be patched, but will require a "Yes, that was okay" response from the user (and will cause the automated migrate process to consider the user unmovable). This list of files is currently: .pine* .netscape* .cshrc .login .forward The user will see new messages when files are copied with moveme or movedir (or cpdir if used by itself). In addition to the existing: Warning, string /ux01/ken/test found within file /ux01/ken/test/t.c. they may also now see: Warning, patching file /ux01/ken/test/t.c for new path. The first warning will not appear for the file names listed above, but the second warning will. Only the first warning will require the "Yes this is okay" response from the user. -Ken .