httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@hyperreal.com>
Subject cvs commit: apache/src mod_include.c
Date Thu, 20 Feb 1997 00:58:54 GMT
jim         97/02/19 16:58:53

  Modified:    src       mod_include.c
  Log:
  Remove getwd()... take one
  
  Revision  Changes    Path
  1.25      +1 -2      apache/src/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_include.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -C3 -r1.24 -r1.25
  *** mod_include.c	1997/02/19 08:18:56	1.24
  --- mod_include.c	1997/02/20 00:58:52	1.25
  ***************
  *** 760,771 ****
    int find_file(request_rec *r, char *directive, char *tag, 
                  char *tag_val, struct stat *finfo, char *error)
    {
  !     char dir[MAX_STRING_LEN];
        char *to_send;
    
        if(!strcmp(tag,"file")) {
            getparents(tag_val); /* get rid of any nasties */
  -         getwd(dir);
            to_send = make_full_path (r->pool, dir, tag_val);
            if(stat(to_send,finfo) == -1) {
                log_printf(r->server,
  --- 760,770 ----
    int find_file(request_rec *r, char *directive, char *tag, 
                  char *tag_val, struct stat *finfo, char *error)
    {
  !     char *dir = "./";
        char *to_send;
    
        if(!strcmp(tag,"file")) {
            getparents(tag_val); /* get rid of any nasties */
            to_send = make_full_path (r->pool, dir, tag_val);
            if(stat(to_send,finfo) == -1) {
                log_printf(r->server,
  
  
  

Mime
View raw message