Revision: 7041
          http://ipcop.svn.sourceforge.net/ipcop/?rev=7041&view=rev
Author:   dotzball
Date:     2013-05-21 10:39:49 +0000 (Tue, 21 May 2013)
Log Message:
-----------
Fix "Certificate file move failed" problem. Use proper/correct return value.

Modified Paths:
--------------
    ipcop/trunk/html/cgi-bin/ipsec.cgi

Modified: ipcop/trunk/html/cgi-bin/ipsec.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/ipsec.cgi  2013-05-21 10:36:08 UTC (rev 7040)
+++ ipcop/trunk/html/cgi-bin/ipsec.cgi  2013-05-21 10:39:49 UTC (rev 7041)
@@ -715,8 +715,8 @@
                 goto VPNCONF_ERROR;
             }
             else {
-                move($filename, "/var/ipcop/certs/$cgiparams{'NAME'}cert.pem");
-                if ($? ne 0) {
+                my $return = move($filename, 
"/var/ipcop/certs/$cgiparams{'NAME'}cert.pem");
+                if ($return ne 1) {
                     $errormessage = "$Lang::tr{'certificate file move 
failed'}: $!";
                     unlink ($filename);
                     goto VPNCONF_ERROR;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to