git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r2562,
[util-vserver.git]
/
src
/
fstool.c
diff --git
a/src/fstool.c
b/src/fstool.c
index
4bb8b8f
..
be01c31
100644
(file)
--- a/
src/fstool.c
+++ b/
src/fstool.c
@@
-1,4
+1,4
@@
-// $Id: fstool.c
,v 1.8 2004/08/19 14:29:25 ensc Exp
$ --*- c -*--
+// $Id: fstool.c
2403 2006-11-24 23:06:08Z dhozac
$ --*- c -*--
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
@@
-156,8
+156,13
@@
processFile(char const *path)
}
if (S_ISDIR(st.st_mode) && !global_args->do_display_dir) {
}
if (S_ISDIR(st.st_mode) && !global_args->do_display_dir) {
+ int cur_dir = Eopen(".", O_RDONLY, 0);
+ uint64_t ret;
Echdir(path);
Echdir(path);
- return iterateFilesystem(path);
+ ret = iterateFilesystem(path);
+ Efchdir(cur_dir);
+ Eclose(cur_dir);
+ return ret;
}
else
return handleFile(path, path) ? 0 : 1;
}
else
return handleFile(path, path) ? 0 : 1;
@@
-213,7
+218,7
@@
int main(int argc, char *argv[])
default :
WRITE_MSG(2, "Try '");
WRITE_STR(2, argv[0]);
default :
WRITE_MSG(2, "Try '");
WRITE_STR(2, argv[0]);
- WRITE_MSG(2, " --help
\"
for more information.\n");
+ WRITE_MSG(2, " --help
'
for more information.\n");
return EXIT_FAILURE;
break;
}
return EXIT_FAILURE;
break;
}