summaryrefslogtreecommitdiff
path: root/contrib/cvs/src/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/src/import.c')
-rw-r--r--contrib/cvs/src/import.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/cvs/src/import.c b/contrib/cvs/src/import.c
index 4d8ddce7f10e..6765d8eb0c39 100644
--- a/contrib/cvs/src/import.c
+++ b/contrib/cvs/src/import.c
@@ -216,7 +216,11 @@ import (argc, argv)
}
#endif
- if (use_editor)
+ if (
+#ifdef SERVER_SUPPORT
+ !server_active &&
+#endif
+ use_editor)
{
do_editor ((char *) NULL, &message,
#ifdef CLIENT_SUPPORT
@@ -247,8 +251,7 @@ import (argc, argv)
if (vbranch[0] != '\0')
option_with_arg ("-b", vbranch);
- if (message)
- option_with_arg ("-m", message);
+ option_with_arg ("-m", message ? message : "");
if (keyword_opt != NULL)
option_with_arg ("-k", keyword_opt);
/* The only ignore processing which takes place on the server side
@@ -1225,7 +1228,7 @@ add_rcs_file (message, rcs, user, add_vhead, key_opt,
case S_IFREG: break;
case S_IFCHR:
case S_IFBLK:
-#ifdef HAVE_ST_RDEV
+#ifdef HAVE_STRUCT_STAT_ST_RDEV
if (fprintf (fprcs, "special\t%s %lu;\012",
(file_type == S_IFCHR
? "character"
@@ -1282,7 +1285,7 @@ userfile);
case S_IFREG: break;
case S_IFCHR:
case S_IFBLK:
-#ifdef HAVE_ST_RDEV
+#ifdef HAVE_STRUCT_STAT_ST_RDEV
if (fprintf (fprcs, "special\t%s %lu;\012",
(file_type == S_IFCHR
? "character"