From: Garrett C. <su...@li...> - 2011-04-22 06:05:48
|
The branch, master, has been updated via 398dcc32d92355901b236d5d6aa4cfee45dd154a (commit) from a5ef1c15efc80403e06a7da67039af16953262e8 (commit) - Log ----------------------------------------------------------------- commit 398dcc32d92355901b236d5d6aa4cfee45dd154a Author: Garrett Cooper <yan...@gm...> Date: Thu Apr 21 23:04:17 2011 -0700 Fix chmod call. chmod() returns the number of files successfully changed, not 0 for success, != 0 for failure compared to the syscall. Signed-off-by: Peng Haitao <pe...@cn...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/containers/netns/container_ftp.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/containers/netns/container_ftp.pl b/testcases/kernel/containers/netns/container_ftp.pl index 696d252..89a35b5 100644 --- a/testcases/kernel/containers/netns/container_ftp.pl +++ b/testcases/kernel/containers/netns/container_ftp.pl @@ -43,7 +43,7 @@ if (!defined($dir)) { push @ERRORS, "Failed to create a temporary directory: $!\n"; printerr(); } -if (chmod(0777, $dir) != 0) { +if (chmod(0777, $dir) == 0) { push @ERRORS, "Failed to change mode for temporary directory: $!\n"; printerr(); } hooks/post-receive -- ltp |