[pve-devel] r5449 - vncterm/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jan 27 13:07:05 CET 2011


Author: dietmar
Date: 2011-01-27 13:07:05 +0100 (Thu, 27 Jan 2011)
New Revision: 5449

Modified:
   vncterm/pve2/vncterm.c
Log:
added ability to specify auth requirements (for acl checks)


Modified: vncterm/pve2/vncterm.c
===================================================================
--- vncterm/pve2/vncterm.c	2011-01-27 11:59:49 UTC (rev 5448)
+++ vncterm/pve2/vncterm.c	2011-01-27 12:07:05 UTC (rev 5449)
@@ -2313,6 +2313,16 @@
       idle_timeout = atoi(argv[i+1]);
       rfbPurgeArguments(&argc, &i, 2, argv);
     }
+    if (!strcmp (argv[i], "-authpath")) {
+      CHECK_ARGC (argc, argv, i);
+      auth_path = argv[i+1];
+      rfbPurgeArguments(&argc, &i, 2, argv);
+    }
+    if (!strcmp (argv[i], "-perm")) {
+      CHECK_ARGC (argc, argv, i);
+      auth_perm = argv[i+1];
+      rfbPurgeArguments(&argc, &i, 2, argv);
+    }
   }
 
 #ifdef DEBUG



More information about the pve-devel mailing list