Commit 2529adce authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

test: write_read_10 -- Fix typo in testing opened file descriptor

Should be @child_fd instead of @fd
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent caeb8db5
......@@ -32,7 +32,7 @@ int main(int argc, char ** argv)
}
child_fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
if (fd < 0) {
if (child_fd < 0) {
pr_perror("can't open %s", filename);
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment