On Wed, Apr 20, 2011 at 12:25 AM, Peng Haitao <[email protected]> wrote: > Garrett Cooper said the following on 2011-4-20 14:07: >> +$dir = tempdir("container_ftp.XXXXXXX", DIR => $tmpdir); >> +if (!defined($dir)) { >> + push @ERRORS, "Failed to create a temporary directory: $!\n"; >> + printerr(); >> +} >> +if (chown(0777, $dir) != 0) { > > The function chown() should be replaced with chmod(), and these functions > return the number of files successfully changed, so the if statement should > be "if (chmod(0777, $dir) == 0) {" > Thanks!
Yeah -- sorry. I was a bit tired at the time :). Thanks! -Garrett ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
