Lines 1-31
Link Here
|
1 |
--- libinotifytools/src/inotifytools.c.orig 2010-02-02 14:55:19 UTC |
|
|
2 |
+++ libinotifytools/src/inotifytools.c |
3 |
@@ -1309,14 +1309,14 @@ int inotifytools_watch_recursively_with_ |
4 |
|
5 |
static struct dirent * ent; |
6 |
char * next_file; |
7 |
- static struct stat64 my_stat; |
8 |
+ static struct stat my_stat; |
9 |
ent = readdir( dir ); |
10 |
// Watch each directory within this directory |
11 |
while ( ent ) { |
12 |
if ( (0 != strcmp( ent->d_name, "." )) && |
13 |
(0 != strcmp( ent->d_name, ".." )) ) { |
14 |
nasprintf(&next_file,"%s%s", my_path, ent->d_name); |
15 |
- if ( -1 == lstat64( next_file, &my_stat ) ) { |
16 |
+ if ( -1 == lstat( next_file, &my_stat ) ) { |
17 |
error = errno; |
18 |
free( next_file ); |
19 |
if ( errno != EACCES ) { |
20 |
@@ -1595,9 +1595,9 @@ int inotifytools_error() { |
21 |
* @internal |
22 |
*/ |
23 |
int isdir( char const * path ) { |
24 |
- static struct stat64 my_stat; |
25 |
+ static struct stat my_stat; |
26 |
|
27 |
- if ( -1 == lstat64( path, &my_stat ) ) { |
28 |
+ if ( -1 == lstat( path, &my_stat ) ) { |
29 |
if (errno == ENOENT) return 0; |
30 |
fprintf(stderr, "Stat failed on %s: %s\n", path, strerror(errno)); |
31 |
return 0; |