Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-12147 utils: statone doesn't place \0
[fs/lustre-release.git]
/
lustre
/
tests
/
statone.c
diff --git
a/lustre/tests/statone.c
b/lustre/tests/statone.c
index
0f11d5d
..
42d9ec3
100644
(file)
--- a/
lustre/tests/statone.c
+++ b/
lustre/tests/statone.c
@@
-59,6
+59,7
@@
int main(int argc, char **argv)
} else {
strncpy(parent, base, t - base);
offset = t - base - 1;
+ parent[t - base] = 0;
}
fd = open(parent, O_RDONLY);