/[man-db]/man-db/src/check_mandirs.c
ViewVC logotype

Diff of /man-db/src/check_mandirs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.46 by cjwatson, Thu Aug 14 23:16:30 2003 UTC revision 1.47 by cjwatson, Fri Aug 15 17:05:57 2003 UTC
# Line 72  extern time_t time(); Line 72  extern time_t time();
72  extern int errno;  extern int errno;
73  #endif  #endif
74    
75    #ifdef HAVE_LIBGEN_H
76    #  include <libgen.h>
77    #endif /* HAVE_LIBGEN_H */
78    
79  #include <libintl.h>  #include <libintl.h>
80  #define _(String) gettext (String)  #define _(String) gettext (String)
81    
# Line 261  void test_manfile (char *file, const cha Line 265  void test_manfile (char *file, const cha
265    
266          if (!lg.whatis) {       /* cache miss */          if (!lg.whatis) {       /* cache miss */
267                  /* go get the whatis info in its raw state */                  /* go get the whatis info in its raw state */
268                    char *file_copy = xstrdup (file);
269  #ifdef COMP_SRC  #ifdef COMP_SRC
270                  /* if the nroff was compressed, an uncompressed version is                  /* if the nroff was compressed, an uncompressed version is
271                     shown by a call to get_ztemp(), grog this for a whatis                     shown by a call to get_ztemp(), grog this for a whatis
# Line 275  void test_manfile (char *file, const cha Line 280  void test_manfile (char *file, const cha
280  #ifdef COMP_SRC  #ifdef COMP_SRC
281                  ztemp = get_ztemp ();                  ztemp = get_ztemp ();
282                  if (ztemp) {                  if (ztemp) {
283                          find_name (ztemp, basename (file), &lg);                          find_name (ztemp, basename (file_copy), &lg);
284                          remove_ztemp ();  /* get rid of temp file identifier */                          remove_ztemp ();  /* get rid of temp file identifier */
285                  } else                  } else
286  #endif /* COMP_SRC */  #endif /* COMP_SRC */
287                          find_name (ult, basename (file), &lg);                          find_name (ult, basename (file_copy), &lg);
288                    free (file_copy);
289                  regain_effective_privs ();                  regain_effective_privs ();
290    
291                  hash_install (whatis_hash, ult, strlen (ult),                  hash_install (whatis_hash, ult, strlen (ult),

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26