[CRIU] [PATCH] test: write_read_10 -- Fix typo in testing opened	file descriptor
    Cyrill Gorcunov 
    gorcunov at openvz.org
       
    Mon Dec 21 05:52:21 PST 2015
    
    
  
Should be @child_fd instead of @fd
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/live/static/write_read10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/live/static/write_read10.c b/test/zdtm/live/static/write_read10.c
index 363384ad7844..81e39fc899fb 100644
--- a/test/zdtm/live/static/write_read10.c
+++ b/test/zdtm/live/static/write_read10.c
@@ -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);
 	}
-- 
2.5.0
    
    
More information about the CRIU
mailing list