[pve-devel] r5013 - pve-access-control/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Aug 16 13:35:10 CEST 2010


Author: dietmar
Date: 2010-08-16 11:35:10 +0000 (Mon, 16 Aug 2010)
New Revision: 5013

Modified:
   pve-access-control/trunk/AccessControl.pm
Log:
import register_file


Modified: pve-access-control/trunk/AccessControl.pm
===================================================================
--- pve-access-control/trunk/AccessControl.pm	2010-08-16 11:33:31 UTC (rev 5012)
+++ pve-access-control/trunk/AccessControl.pm	2010-08-16 11:35:10 UTC (rev 5013)
@@ -9,7 +9,7 @@
 use Authen::PAM qw(:constants);
 use Net::LDAP;
 use PVE::Tools qw(run_command lock_file file_get_contents split_list);
-use PVE::INotify qw(read_file write_file);
+use PVE::INotify qw(register_file read_file write_file);
 use PVE::JSONSchema;
 
 use Data::Dumper; # fixme: remove
@@ -31,20 +31,20 @@
 
 Crypt::OpenSSL::RSA->import_random_seed();
  
-PVE::INotify::register_file('authkeypub', "$authdir/authkey.pub",
-			    \&read_pubkey);
+register_file('authkeypub', "$authdir/authkey.pub",
+	      \&read_pubkey);
 
-PVE::INotify::register_file('authkeypriv', "$authdir/authkey.key",
-			    \&read_privkey);
+register_file('authkeypriv', "$authdir/authkey.key",
+	      \&read_privkey);
 
-PVE::INotify::register_file('usercfg', $userconfigpath, 
-			    \&parse_user_config,  \&write_user_config);
+register_file('usercfg', $userconfigpath, 
+	      \&parse_user_config,  \&write_user_config);
 
-PVE::INotify::register_file('shadowpasswd', $shadowconfigpath, 
-			    \&parse_shadow_passwd, \&write_shadow_config, undef,
-			    perm => 0600);
+register_file('shadowpasswd', $shadowconfigpath, 
+	      \&parse_shadow_passwd, \&write_shadow_config, undef,
+	      perm => 0600);
 
-PVE::INotify::register_file('domaincfg', $domainconfigpath, \&parse_domains);
+register_file('domaincfg', $domainconfigpath, \&parse_domains);
 
 sub auth_data_dir {
     return $authdir;




More information about the pve-devel mailing list