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-3976 tests: sanity-hsm test_9a is buggy
[fs/lustre-release.git]
/
lustre
/
tests
/
openfilleddirunlink.c
diff --git
a/lustre/tests/openfilleddirunlink.c
b/lustre/tests/openfilleddirunlink.c
index
6ab9b68
..
b601185
100644
(file)
--- a/
lustre/tests/openfilleddirunlink.c
+++ b/
lustre/tests/openfilleddirunlink.c
@@
-1,6
+1,4
@@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@
-74,7
+72,7
@@
int main(int argc, char **argv)
exit(1);
}
exit(1);
}
-
sprintf(fname
, "%s/0", dname1);
+
snprintf(fname, sizeof(fname)
, "%s/0", dname1);
fprintf(stderr, "creating file %s\n", fname);
fd = creat(fname, 0666);
if (fd < 0) {
fprintf(stderr, "creating file %s\n", fname);
fd = creat(fname, 0666);
if (fd < 0) {