Mailinglist Archive: yast-commit (459 mails)

< Previous Next >
[yast-commit] r60707 - /branches/SuSE-Code-11-SP1-Branch/openvas-security-scanner/src/OpenvasSecurityScanner.ycp
  • From: openvasfelix@xxxxxxxxxxxxxxxx
  • Date: Fri, 05 Feb 2010 12:45:02 -0000
  • Message-id: <E1NdNYU-000823-8s@xxxxxxxxxxxxxxxx>
Author: openvasfelix
Date: Fri Feb 5 13:45:01 2010
New Revision: 60707

URL: http://svn.opensuse.org/viewcvs/yast?rev=60707&view=rev
Log:
Added yet unused function to determine if the current openvas
installation has at least one user installed.

Modified:

branches/SuSE-Code-11-SP1-Branch/openvas-security-scanner/src/OpenvasSecurityScanner.ycp

Modified:
branches/SuSE-Code-11-SP1-Branch/openvas-security-scanner/src/OpenvasSecurityScanner.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/openvas-security-scanner/src/OpenvasSecurityScanner.ycp?rev=60707&r1=60706&r2=60707&view=diff
==============================================================================
---
branches/SuSE-Code-11-SP1-Branch/openvas-security-scanner/src/OpenvasSecurityScanner.ycp
(original)
+++
branches/SuSE-Code-11-SP1-Branch/openvas-security-scanner/src/OpenvasSecurityScanner.ycp
Fri Feb 5 13:45:01 2010
@@ -121,6 +121,20 @@


/**
+ * Checks /var/lib/openvas/users/ for content. If content is found this means
a user
+ * for openvas exists.
+ * @return true if users were found, false otherwise.
+ */
+global boolean CheckUserExists () {
+ list<string> users = (list<string>) SCR::Read(.target.dir,
"/var/lib/openvas/users/");
+ if (size(users) > 0)
+ return true;
+ else
+ return false;
+}
+
+
+/**
* Read all OpenVAS Security Scanner settings
* @return true on success
*/

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages