File cvs-allow_trailing_dir_slash.diff of Package cvs-stable

--- src/main.c
+++ src/main.c	2003/01/31 14:03:21
@@ -988,6 +988,23 @@
 	    }
 #endif
 
+
+	    {
+	    /* pretty ugly hack to make the usage of a trailing slash 
+	       (as in e.g. "cvs up source/") possible */
+	    int i = argc-1;
+	    while( i>0 && access( argv[i], R_OK )==0 )
+		{
+		int lpos = strlen(argv[i])-1;
+		while( lpos>=0 && argv[i][lpos]=='/' )
+		    {
+		    argv[i][lpos] = 0;
+		    lpos--;
+		    }
+		i--;
+		}
+	    }
+
 	    err = (*(cm->func)) (argc, argv);
 	
 	    /* Mark this root directory as done.  When the server is
openSUSE Build Service is sponsored by