mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
test: write_read_10 -- Fix typo in testing opened file descriptor
Should be @child_fd instead of @fd Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
caeb8db5ce
commit
2529adceb5
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user