diff options
author | Frederic Lepied <flepied@mandriva.com> | 2004-03-21 15:45:41 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2004-03-21 15:45:41 +0000 |
commit | 65102ea847e45ce21eaee0ed8872c681a7d344f4 (patch) | |
tree | a45a8d89ccc168c6b8c79b72bfbd09987f0531e0 /src/msec_find | |
parent | 72725d21e31cece629637e589d15a9fef4527092 (diff) | |
download | msec-65102ea847e45ce21eaee0ed8872c681a7d344f4.tar msec-65102ea847e45ce21eaee0ed8872c681a7d344f4.tar.gz msec-65102ea847e45ce21eaee0ed8872c681a7d344f4.tar.bz2 msec-65102ea847e45ce21eaee0ed8872c681a7d344f4.tar.xz msec-65102ea847e45ce21eaee0ed8872c681a7d344f4.zip |
workaround bug #9121 by not passing FTW_CHDIR to ntfw.
Diffstat (limited to 'src/msec_find')
-rw-r--r-- | src/msec_find/find.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/msec_find/find.c b/src/msec_find/find.c index 490e41d..294881e 100644 --- a/src/msec_find/find.c +++ b/src/msec_find/find.c @@ -198,10 +198,13 @@ int main(int argc, char **argv) strcpy(directory, argv[i]); strcat(directory, "/"); - } else directory = argv[i]; - - res = nftw(directory, traverse, 200, FTW_PHYS | FTW_MOUNT | FTW_CHDIR); - if ( ctrl ) { + } else { + directory = argv[i]; + } + + res = nftw(directory, traverse, 200, FTW_PHYS | FTW_MOUNT); + + if ( ctrl ) { free(directory); ctrl = 0; } |