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

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

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

revision 1.100 by cjwatson, Thu Aug 14 23:16:30 2003 UTC revision 1.101 by cjwatson, Fri Aug 15 17:05:57 2003 UTC
# Line 121  extern char *getenv(); Line 121  extern char *getenv();
121  extern int errno;  extern int errno;
122  #endif  #endif
123    
124    #ifdef HAVE_LIBGEN_H
125    #  include <libgen.h>
126    #endif /* HAVE_LIBGEN_H */
127    
128  #ifdef HAVE_GETOPT_H  #ifdef HAVE_GETOPT_H
129  #  include <getopt.h>  #  include <getopt.h>
130  #else /* !HAVE_GETOPT_H */  #else /* !HAVE_GETOPT_H */
# Line 846  static int local_man_loop (const char *a Line 850  static int local_man_loop (const char *a
850                                  exit_status = CHILD_FAIL;                                  exit_status = CHILD_FAIL;
851  #endif /* COMP_SRC */  #endif /* COMP_SRC */
852                  if (exit_status == OK) {                  if (exit_status == OK) {
853                            char *argv_copy = xstrdup (argv);
854                          lang = lang_dir (argv);                          lang = lang_dir (argv);
855                          if (!display (NULL, argv, NULL, basename (argv),                          if (!display (NULL, argv, NULL, basename (argv_copy),
856                                        NULL)) {                                        NULL)) {
857                                  if (local_mf)                                  if (local_mf)
858                                          error (0, errno, "%s", argv);                                          error (0, errno, "%s", argv);
859                                  exit_status = NOT_FOUND;                                  exit_status = NOT_FOUND;
860                          }                          }
861                            free (argv_copy);
862                  }                  }
863    
864  #ifdef COMP_SRC  #ifdef COMP_SRC

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

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