/[anubis]/anubis/src/env.c
ViewVC logotype

Diff of /anubis/src/env.c

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

revision 1.2 by gray, Wed Feb 5 21:51:10 2003 UTC revision 1.3 by gray, Fri Feb 7 22:59:42 2003 UTC
# Line 306  check_filemode(char *path) Line 306  check_filemode(char *path)
306  **************************/  **************************/
307    
308  int  int
309  check_filename(char *path)  check_filename(char *path, time_t *timep)
310  {  {
311          struct stat st;          struct stat st;
312    
# Line 322  check_filename(char *path) Line 322  check_filename(char *path)
322                          _("%s is not a regular file or a symbolic link."), path);                          _("%s is not a regular file or a symbolic link."), path);
323                  return 0; /* FALSE */                  return 0; /* FALSE */
324          }          }
325    
326            if (timep) {
327                    time_t mtime = *timep;
328                    *timep = st.st_mtime;
329                    return st.st_mtime > mtime;
330            }
331          return 1; /* TRUE */          return 1; /* TRUE */
332  }  }
333    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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