aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2005-04-28 20:46:16 +0000
committerDimitri Sokolyuk <demon@dim13.org>2005-04-28 20:46:16 +0000
commit6cc1e2a7d776c263424266f7ef2800f270fbfe3a (patch)
treeb528f00558882b6d537fe69e8724cff767fcd103
parent986d637b38d0b1211a2c9a8c957498ed90d1b3ab (diff)
sync
-rw-r--r--anoncvs.shar30
1 files changed, 7 insertions, 23 deletions
diff --git a/anoncvs.shar b/anoncvs.shar
index 0f5d372..35e372b 100644
--- a/anoncvs.shar
+++ b/anoncvs.shar
@@ -78,7 +78,7 @@ X running sup to maintain the archive.
X
Xcreate an account similar to:
X
-X anoncvs::32766:32766:Anonymous CVS User:/open/anoncvs:/open/anoncvssh
+X anoncvs::32766:32766::0:0:Anonymous CVS User:/open/anoncvs:/open/anoncvssh
X
XYes, that is right - the account has no password. Be sure that the
Xuid and gid are unique for your system, if the ones above aren't,
@@ -425,22 +425,6 @@ X#include <pwd.h>
X#include <unistd.h>
X#include <sys/types.h>
X
-X#ifndef __CONCAT
-X#if defined(__STDC__) || defined(__cplusplus)
-X#define __CONCAT(x,y) x ## y
-X#else
-X#define __CONCAT(x,y) x/**/y
-X#endif
-X#endif
-X
-X#ifndef __CONCAT3
-X#if defined(__STDC__) || defined(__cplusplus)
-X#define __CONCAT3(x,y,z) x ## y ## z
-X#else
-X#define __CONCAT3(x,y,z) x/**/y/**/z
-X#endif
-X#endif
-X
X#ifndef __P
X#if defined(__STDC__) || defined(__cplusplus)
X#define __P(protos) protos /* full-blown ANSI C */
@@ -484,7 +468,7 @@ X/*
X * $CVSROOT is created based on HOSTNAME and LOCALROOT above
X */
X#ifndef CVSROOT
-X#define CVSROOT __CONCAT3(HOSTNAME,":",LOCALROOT)
+X#define CVSROOT HOSTNAME ":"LOCALROOT
X#endif
X
X/*
@@ -519,9 +503,9 @@ X
Xint main __P((int, char *[]));
X
Xchar * const env[] = {
-X __CONCAT("PATH=",_PATH_DEFPATH),
-X __CONCAT("SHELL=",_PATH_BSHELL),
-X __CONCAT("CVSROOT=",LOCALROOT),
+X "PATH="_PATH_DEFPATH,
+X "SHELL="_PATH_BSHELL,
+X "CVSROOT="LOCALROOT,
X "HOME=/",
X "CVSREADONLYFS=1",
X NULL
@@ -615,7 +599,7 @@ X them, ntohs(peer_sa.sin_port),
X us, ntohs(my_sa.sin_port));
X#endif /* USE_SYSLOG */
X execle("/usr/bin/cvs", "cvs",
-X __CONCAT("--allow-root=",LOCALROOT), "pserver", (char *)NULL, env);
+X "--allow-root="LOCALROOT, "pserver", (char *)NULL, env);
X perror("execle: cvs");
X fprintf(stderr, "unable to exec CVS pserver!\n");
X exit(1);
@@ -627,7 +611,7 @@ X if (argc != 3 ||
X strcmp("anoncvssh", argv[0]) != 0 ||
X strcmp("-c", argv[1]) != 0 ||
X (strcmp("cvs server", argv[2]) != 0 &&
-X strcmp(__CONCAT3("cvs -d ",LOCALROOT," server"), argv[2]) != 0)) {
+X strcmp("cvs -d "LOCALROOT" server", argv[2]) != 0)) {
X fprintf(stderr, "\nTo use anonymous CVS install the latest ");
X fprintf(stderr,"version of CVS on your local machine.\n");
X fprintf(stderr,"Then set your CVSROOT environment variable ");