[11403] in Athena Bugs
decmips 7.4G: /usr/athena/lib/makewhatis bug+fix
daemon@ATHENA.MIT.EDU (Calvin Clark)
Sat Nov 20 15:23:32 1993
Date: Sat, 20 Nov 93 15:23:11 -0500
From: Calvin Clark <ckclark@MIT.EDU>
To: bugs@MIT.EDU
-------
System name: paris
Type and version: KN210 7.4G (1 update(s) to same version)
Display type:
What were you trying to do?
Run makewhatis in the sipb locker.
What's wrong:
Makewhatis failed to generate entries for the manl and mann
directories. The reason? There is an ordinary file called
``mandesc'' in the man directory, in addition to the usual man*
directories. Makewhatis tries to cd into there and fails, thus
breaking the loop.
What should have happened:
Makewhatis should do the right thing. Here is a fix:
*** /usr/athena/lib/makewhatis Sat Jul 20 13:39:41 1991
--- makewhatis Sat Nov 20 15:19:12 1993
***************
*** 40,48 ****
# so "xargs" is used to scan reference pages in
# smaller chunks at a time.
#
! cd $i
! ls | xargs -n$LIMIT /usr/lib/getNAME
! cd ..
;;
*)
--- 40,52 ----
# so "xargs" is used to scan reference pages in
# smaller chunks at a time.
#
! if [ -d $i ]; then
! cd $i
! if [ $? = 0 ]; then
! ls | xargs -n$LIMIT /usr/lib/getNAME
! cd ..
! fi
! fi
;;
*)
Please describe any relevant documentation references:
N/A