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 |
|
|
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 |
|
|