www.ProFTPD.de

ProFTPD => ProFTPD - Deutsch => Thema gestartet von: guden am 18. Juli 2003, 09:12:09



Titel: Proftpd CVS server tot ?
Beitrag von: guden am 18. Juli 2003, 09:12:09
Wenn ich auf den server will komme ich nicht drauf.....gehe vor wie hier beschrieben :

The CVS server is cvs.proftp.sourceforge.net
anonymous@cvs.proftp.sourceforge.net is the user, the password is blank
The directory is /cvsroot/proftp and the tree is proftpd.


Titel: Proftpd CVS server tot ?
Beitrag von: Wörsty am 18. Juli 2003, 09:13:29
Versuchst du es mit cvs oder FTP?


Titel: Proftpd CVS server tot ?
Beitrag von: guden am 18. Juli 2003, 09:16:46
mit ftp....muß ich es mit cvs machen ?...wllte mal die neuste cvs version testen da ja dort der bug mit dem %N behoben sein soll..


Titel: Proftpd CVS server tot ?
Beitrag von: Wörsty am 18. Juli 2003, 10:01:27
Ja. Mit cvs.


Titel: Proftpd CVS server tot ?
Beitrag von: guden am 18. Juli 2003, 14:05:49
alles kalr hat nun geklappt :-)

Für was ist eigentlich CVS ?
ist das für entwickler etc. ?


Titel: Proftpd CVS server tot ?
Beitrag von: stonki am 18. Juli 2003, 14:16:31
Zitat von: "guden"
alles kalr hat nun geklappt :-)

Für was ist eigentlich CVS ?
ist das für entwickler etc. ?


Ja.
CVS steht fuer "Concurrent Version System" (siehe auch http://www.cvshome.org/) und ermoeglich das verteilte Arbeiten an Sourcen. Die Entwickler haben schreibend Zugriff auf die Dateien und koennen Ihre lokalen Dateien (mit aenderungen) sehr einfach mit dem Server syncronisieren. Alte Versionen werden behalten, dass relativ einfach ein Rollback gemacht werden kann, wenn etwas mal daneben geht.

CVS ist so der Quasi Standard, obwohl es natuerlich auch andere (bessere) Systeme gibt.

cu
stonki


Titel: Proftpd CVS server tot ?
Beitrag von: guden am 18. Juli 2003, 14:36:43
So habe nun das neuest proftpd von CVS installiert nur geht die angabe %N immer noch nicht richtig...

Hier erzält wörsty aber das es geht:
 http://www.proftpd.de/forum2/viewtopic.php?t=119


mahce ich was falsch ?


Titel: Proftpd CVS server tot ?
Beitrag von: Wörsty am 18. Juli 2003, 15:27:40
Wenn ich nicht den flaschen Patch geschnappt habe, ging's mit dem hier:
Musst eine Datei draus machen die nach /modules kopieren und dann in /modules patch -i dateiname eingeben und neu kompilieren.
Versionen prüfen!
Code:
Index: modules/mod_auth.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/modules/mod_auth.c,v
retrieving revision 1.153
diff -u -r1.153 mod_auth.c
--- modules/mod_auth.c  3 Jun 2003 16:25:21 -0000       1.153
+++ modules/mod_auth.c  5 Jun 2003 18:50:13 -0000
@@ -1423,18 +1423,17 @@
 static void auth_scan_scoreboard(void) {
   config_rec *c = NULL;
   pr_scoreboard_entry_t *score = NULL;
-  int cur = -1, ccur = -1;
+  unsigned int cur = 0, ccur = 0;
   char config_class_users[128] = {'\0'};
   char curr_server_addr[80] = {'\0'};
   xaset_t *conf = NULL;
+
   unsigned char *class_engine = get_param_ptr(main_server->conf,
     "Classes", FALSE);

-  if (!class_engine || *class_engine == FALSE)
-    return;
-
-  if (!session.class)
-    return;
+  unsigned char chk_class =
+    (class_engine && *class_engine == TRUE &&
+     session.class && session.class->name) ? TRUE : FALSE;

   snprintf(curr_server_addr, sizeof(curr_server_addr), "%s:%d",
     inet_ntoa(*main_server->ipaddr), main_server->ServerPort);
@@ -1451,7 +1450,7 @@
       /* Note: the class member of the scoreboard entry will never be
        * NULL.  At most, it may be the empty string.
        */
-      if (strcasecmp(score->sce_class, session.class->name) == 0)
+      if (chk_class && strcasecmp(score->sce_class, session.class->name) == 0)
         ccur++;
     }
   }
@@ -1466,15 +1465,17 @@
   c->argv[0] = pcalloc(c->pool, sizeof(int));
   *((int *) c->argv[0]) = cur;

-  remove_config(CURRENT_CONF, "CURRENT-CLASS", FALSE);
-  add_config_param_set(&conf, "CURRENT-CLASS", 1, session.class->name);
-
-  snprintf(config_class_users, sizeof(config_class_users),
-    "CURRENT-CLIENTS-CLASS-%s", session.class->name);
-  remove_config(CURRENT_CONF, config_class_users, FALSE);
-  c = add_config_param_set(&conf, config_class_users, 1, NULL);
-  c->argv[0] = pcalloc(c->pool, sizeof(int));
-  *((int *) c->argv[0]) = ccur;
+  if (chk_class) {
+    remove_config(CURRENT_CONF, "CURRENT-CLASS", FALSE);
+    add_config_param_set(&conf, "CURRENT-CLASS", 1, session.class->name);
+
+    snprintf(config_class_users, sizeof(config_class_users),
+      "CURRENT-CLIENTS-CLASS-%s", session.class->name);
+    remove_config(CURRENT_CONF, config_class_users, FALSE);
+    c = add_config_param_set(&conf, config_class_users, 1, NULL);
+    c->argv[0] = pcalloc(c->pool, sizeof(int));
+    *((int *) c->argv[0]) = ccur;
+  }
 }

 static void auth_count_scoreboard(cmd_rec *cmd, char *user) {


Titel: Proftpd CVS server tot ?
Beitrag von: guden am 18. Juli 2003, 15:35:41
hamm geht nicht...habe wohl die falsche module version.... wie bekomme ich die richtige ?


Titel: Proftpd CVS server tot ?
Beitrag von: Wörsty am 18. Juli 2003, 15:37:04
Zitat von: "guden"
falsche module version

Hä?


Titel: Proftpd CVS server tot ?
Beitrag von: Anonymous am 18. Juli 2003, 16:51:43
Das bekomme ich wenn ich versuche zu patchen..:

linux:~/proftpd/modules # patch -i patch
patching file mod_auth.c
patch: **** malformed patch at line 9: static void auth_scan_scoreboard(void) {

linux:~/proftpd/modules #


was muß ich tun ?


Titel: Proftpd CVS server tot ?
Beitrag von: guden am 18. Juli 2003, 16:59:24
Ups vergessen einzuloggen