hocheck(SMT) 6 January 1993 hocheck(SMT) Name hocheck - compare perms lists with current and past distributions Syntax /usr/bin/hocheck [-c] [-d] destinationdirectory permlist(s) \ [-r listing [listing(s)]] Description hocheck takes the permlist(s) given to it and systematically goes through them, comparing the entries it finds with the files in the distribution tree. You must run hocheck from the root of the distribution tree you want to check. If told to check cpio or tar listing(s), then hocheck also compares these lists with the permissions list(s) and the distribution tree. hocheck stores all the information it finds in a directory given by the user, destinationdirectory. It stores the following information in the following files: devices lists all the devices given in the permlists, indicated by a file type descriptor of p, b, or c, and the major and minor device numbers that are given for the block and character de- vices. The description is preceded by the string present if the device has already been made in the distribution tree; otherwise it is preceded by the string missing. distdirs lists all the directories that are in the distribution tree, but not on the permission list(s) or the cpio/tar listing(s) distfiles lists all the files found in the distribution tree that are not on the permission list(s) or the cpio/tar listing(s) empty lists all the empty files defined on the permission list(s) links lists all links found in the permission list(s). If the links are actually just copies of each other in the distribu- tion tree, then the list has the string (secondfileacopy) in the first column. If the second file in the link is miss- ing then the string in the first column is (secondfilemissing). Otherwise, the string (normallinks) is listed. newdistfiles lists of files found in the distribution tree, but in neither the previous distribution tree (as per the last search by hocheck), nor the permission list(s) or cpio/tar list(s). _________________________________________________________________________ NOTE This is only created when using the -d option. _________________________________________________________________________ packages lists of all the packages found in the permission list(s) and what permission list(s) they were encountered in permdirs lists all the directories in permission list(s), but not dis- tribution tree, regardless of whether they are listed in the cpio/tar list(s) permfiles lists all the file found in the permission list(s), but not in the distribution tree, regardless of whether they are listed in the cpio/tar list(s) ootdist lists all entries in the cpio/tar list(s) not found in the distribution tree _________________________________________________________________________ NOTE This is only created when using the -r option. _________________________________________________________________________ ootperm lists all entries in the cpio/tar list(s) not found in the permission list(s) _________________________________________________________________________ NOTE This is only created when using the -r option. _________________________________________________________________________ Options -c Clean. This option causes hocheck to clean out the directory of previous files. If this option is not used, then all the previous files are backed up by appending them with a ``-''. -d Differentiate. This option the creates the files newdist- files, which are brand new to this cut, and have somehow not been placed on the permission lists or cpio/tar lists. This is done by comparing the current distfiles with the previous distfiles. _________________________________________________________________________ NOTE This can only be done if hocheck has been run on a previous distribution tree and the destinationdirectory still exists, and is used again. _________________________________________________________________________ This option still works with the -c option. -r Relative. This option signals hocheck that all following files listed on the command line are of the cpio/tar format of one field per line, each entry being a file or a directory listed relative to some $ROOT. Files /usr/bin/hocheck Notes If any file produced by hocheck is empty then it is not created. See also mkcuts(SMT)