ChangeLog 31.1 KB
Newer Older
1
2
3
4
5
6
1998-07-11  Per Cederqvist  <ceder@lysator.liu.se>

	Fix compilation outside the source directory.
	* src/server/Makefile.am (aux-item-def.tab.c): Look for
	aux-item-def.y in srcdir.

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
1998-07-10  Per Cederqvist  <ceder@lysator.liu.se>

	Fix "make install".
	* run-support/Makefile.am (sysconf_DATA): Added, but empty.
	(EXTRA_DIST): Added config and aux-items.conf.
	(komrunning): The current standard names the variable sysconfdir,
	not etcdir.
	(savecore): Likewise.
	(install-data-local): Likewise.
	
	Fix the configure script so that --enable-isc-printf is no longer
	needed.
	* configure.in: Force enable_isc_printf so that libisc contains
	the proper things.

	Some versions of libnsl and/or libsocket are reportedly bogus, so
	don't link against them unless it is really necessary.
	* configure.in: Improved checking for -lsocket and -lnsl.

26
27
1998-07-09  Per Cederqvist  <ceder@lysator.liu.se>

28
	Don't forget src/server/testsuite.
29
30
	* configure.in: Don't forget src/server/testsuite.
	(USING_GNU_MALLOC): An automake conditional.
31
32
33
34
35
36
	* src/server/testsuite/test-l2g.c (main): Make it a proper
	prototype.  Avoid problems with signed chars.  Fixed typo: use
	l2g_write, not l2g_print.
	* src/server/testsuite/Makefile.am: New file.
	* src/server/Makefile.am (SUBDIRS): New variable; added testsuite.

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
	Don't try to compile zmalloc which was removed yesterday.
	* src/libraries/libmisc/Makefile.am (libmisc_a_SOURCES): Removed
	zmalloc.c.

	Build komrunning and savecore.
	* run-support/Makefile.am: New file.

	Switch to using automake.
	* mkmi: Run aclocal, automake and autoconf instead of creating
	Makefile.in via a m4 script.
	* configure.in: Move up AC_CONFIG_AUX_DIR so that both automake
	and autoconf detects it early enough.  Remove explicit AC_SUBST of
	several variables that automake handles automatically, or that was
	used for functionality that automake provides in different ways:
	CFLAGS, CPPFLAGS, LDFLAGS, DEPENDFLAGS, INCLUDE_CURRENT,
	EXTRAARFLAGS, SRCTOPDIR, BUILDTOPDIR. Added call to
	AM_C_PROTOTYPES.  Rely on automakes ability to fix dependencies
	automatically and handle ARFLAGS properly.  Use
	CMOD_COMPILER_CC_ACCEPTS to check for a lot of warning flags to
	use.  Use CMOD_C_ATTRIBUTE_UNUSED.  Use AM_PROG_LEX instead of
	AC_PROG_LEX.  Removed check for sys/select.h, which only isc uses.
	Added check for values.h.  Run configure in
	src/libraries/libisc-new instead of creating makefiles in that
	directory.  Generated db-crypt/Makefile and run-support/Makefile.

	Don't version-control files that are generated by aclocal,
	automake, autoconf or bison.
	* Makefile.in: No longer kept under version control.
	* aclocal.m4: Likewise.
	* configure: Likewise.
	* doc/Makefile.in: Likewise.
	* doc/man/Makefile.in: Likewise.
	* run-support/Makefile.in: Likewise.
	* scripts/Makefile.in: Likewise.
	* scripts/install-sh: Likewise.
	* scripts/mkinstalldirs: Likewise.
	* src/Makefile.in: Likewise.
	* src/include/Makefile.in: Likewise.
	* src/include/server/Makefile.in: Likewise.
	* src/libraries/Makefile.in: Likewise.
	* src/libraries/libansi/Makefile.in: Likewise.
	* src/libraries/libcommon/Makefile.in: Likewise.
	* src/libraries/libmisc/Makefile.in: Likewise.
	* src/server/Makefile.in: Likewise.
	* src/server/aux-item-def.tab.c: Likewise.

83
84
85
86
87
88
1998-07-08  Per Cederqvist  <ceder@lysator.liu.se>

	Use libisc-0.99.
	* src/server/isc-interface.h: Include "isc.h" instead of
	"isc-new.h".
	(ISC_PRINTF_SUPPORT): Define it.
89
90
91
	* src/libraries/libisc-new: Replace the old contents with that of
	isc-0.99.  Se src/libraries/libisc-new/ChangeLog for information
	about any modifications that are made to the library.
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325

	Added files that automake requires.
	* AUTHORS: New file.
	* README-serverrelease: Renamed to README.
	* README: New name for former README-serverrelease.
	* acinclude.m4: New file.  Contents taken from the old
	aclocal.m4, but changed to match the contents of libisc.

	Added new makefile templates for automake.
	* Makefile.am: New file.
	* db-crypt/Makefile.am: New file.
	* doc/Makefile.am: New file.
	* doc/man/Makefile.am: New file.
	* scripts/Makefile.am: New file.
	* src/Makefile.am: New file.
	* src/include/Makefile.am: New file.
	* src/include/server/Makefile.am: New file.
	* src/libraries/Makefile.am: New file.
	* src/libraries/libansi/Makefile.am: New file.
	* src/libraries/libcommon/Makefile.am: New file.
	* src/libraries/libmisc/Makefile.am: New file.
	* src/server/Makefile.am: New file.

	Code cleanup for increased portability.
	* src/libraries/libmisc/pom.c: Use HAVE_VALUES_H instead of
	__svr4__ and __sparc__ to protect inclusion of <values.h>.
	(rcsid): Added a missing const.

	Improved some variable types and fixed problems with signed
	chars.
	* src/server/simple-cache.c (rcsid): Added a missing const.
	(next_free_num): Changed type from int to Conf_no.
	(next_text_num): Changed type from int to Text_no.
	(read_person): Flag unused parameters.
	(read_conference): Likewise.
	(read_text_stat): Likewise.
	(cached_get_text_stat): Adjusted printf format according to
	the next_text_num change.
	(init_cache): Likewise.
	(free_match_table): Renamed a parameter name to avoid
	warnings from gcc.
	(build_matching_info): Renamed a local variable name to avoid
	warnings from gcc.
	(pre_sync): Use tno_iter and cno_iter instead of i to get all
	types correct.
	(post_sync): Likewise.
	(copy_file): Flag unused parameters.
	* src/server/ram-parse.c (rcsid): Added a missing const.
	(fparse_info_0): Now static.
	(fparse_info_2): Likewise.
	(fparse_conference_2): Likewise.
	(fparse_conference_0): Likewise.
	(fparse_person_0): Likewise.
	(fparse_person_2): Likewise.
	(fparse_text_stat_2): Likewise.
	(fparse_text_stat_0): Likewise.
	(fparse_conf_list): Changed type of local variable "i" from int to
	unsigned long.
	(fparse_text_list): Likewise.
	* src/server/ram-output.c (foutput_text_list): Changed
	type of local variable "i" from int to unsigned long.
	(foutput_time): Renamed a parameter name to avoid
	warnings from gcc.
	(rcsid): Added a missing const.
	* src/server/prot-a-output.c (prot_a_output_conf_list): Changed
	type of local variable "i" from int to unsigned long.
	(prot_a_output_text_list): Likewise.
	(prot_a_output_time): Renamed local variable
	names to avoid warnings from gcc.
	(rcsid): Added a missing const.
	* src/server/local-to-global.c (Local_text_no_iter): New
	experimental typedef.
	(l2g_append): Renamed i to ix and changed type to
	Local_text_no_iter.
	* src/server/dbck-cache.c: Include dbck-cache.h.
	(rcsid): Added a missing const.
	(next_text_num): Changed type from int to Text_no.
	(TEXT_RANGE): Adjusted printf format for next_text_num change.
	(VOID_TEXT_RANGE): Likewise.
	(cache_sync): Changed type of local variable i from int to
	unsigned long.  Removed extern declaration of oformat.
	Adjusted printf formats for next_text_num change.
	(init_cache): Removed extern declaration of oformat.
	Adjusted printf formats for next_text_num change.
	* src/server/conference.c (do_create_conf): Now static.
	(do_lookup): Changed type of local variables i and retsize to
	avoid warnings.  Handle overflow a little better and log warning
	messages if overflow ever occurs.
	(rcsid): Added a missing const.
	* src/libraries/libmisc/s-string.c (s_strcmp): Changed type of
	loop variable from "unsigned int" to "String_size".
	(s_usr_strcmp): Likewise.
	(char2digit): Added const qualifier to translate_table.  Use an
	int as argument to isalpha and tolower to avoid problems with
	signed chars.
	(rcsid): Added a missing const.
	* src/server/conf-file.c (assign_text_no):  Don't use isdigit
	unless isascii is true.  Use an int as argument to isalpha and
	isdigit to avoid problems with signed chars.
	(assign_conf_no): Likewise.
	(assign_int): Likewise.
	(rcsid): Added a missing const.

	Many minor tweaks to remove annoying but harmless warnings from
	gcc.
	* src/server/updateLysKOM.c (checkstatus): Now static.
	* src/server/text.c: Include internal-services.h.
	(rcsid): Added a missing const.
	(set_loc_no): Renamed a parameter name to avoid
	warnings from gcc.
	(find_recipient): Now static.  Removed declaration of errno.
	* src/server/session.c (get_time): Renamed a parameter name to avoid
	warnings from gcc.
	(rcsid): Added a missing const.
	* src/server/server-config.c (log_param): Flag unused argument.
	(param_name): Now static.
	(rcsid): Added a missing const.
	* src/server/rfc931.c: Include rfc931.h.
	(get_real_username): Added a const qualifier to the return value.
	* src/server/rfc931.h (get_real_username): Added a const qualifier
	to the return value.
	* src/server/ramkomd.c (rcsid): Added a missing const.
	(init_data_base): Removed unused argument dir_base.  All callers
	updated.
	(sighandler_hup): Flag unused argument.
	(sighandler_quit): Likewise.
	(sighandler_usr1): Likewise.
	(sighandler_usr2): Likewise.
	(go_daemon): Make it a function prototype.
	(initialize): New static.
	* src/server/mux.c: (rcsid): Added a missing const.
	(UCB_printf): Specify the return type in the extern declaration.
	* src/server/membership.c (do_add_member): Renamed local variable
	names to avoid warnings from gcc.
	(do_sub_member): Likewise.
	(locate_member): Likewise.
	(check_membership): Likewise.
	(set_membership_type): Likewise.
	(rcsid): Added a missing const.
	* src/server/log.c (rcsid): Added a missing const.
	(logv): Renamed local variable names to avoid warnings
	from gcc.
	(log): Likewise.
	* src/server/internal-services.h (do_create_conf): Declaration
	removed.  This function is static.
	* src/server/dbck.c (register_jubel): Flag unused arguments.
	(locate_member): Renamed local variable names to avoid warnings
	from gcc.
	(check_misc_infos): Likewise.
	(check_created_texts): Likewise.
	(check_membership): Likewise.
	(check_texts_in_conf): Likewise.
	(confirm): Added const qualifier to argument question.
	(check_member): Likewise.
	(init_data_base): Removed the unused dbase_dir argument.  All
	callers updated.
	* src/server/dbck-cache.h (oformat): Declaration added.
	* src/server/connections.c (login_request): Added a missing const
	to the realuser local variable.
	(rcsid): Added a missing const.
	* src/server/conf-file.h (struct parameter): Added const qualifier
	to the name and default_val tags.
	* src/server/aux-items.c: Include services.h.
	(aux_item_definition_cache_regexp): Now static.
	(initialize_aux_items): Removed declaration of
	parse_aux_item_definitions.
	(aux_item_call_add_triggers): Now static.
	(aux_item_call_delete_triggers): Now static.
	(aux_item_call_undelete_triggers): Now static.
	* src/server/aux-items.h (Aux_item_definition_s): Added const
	qualifier to the name tag.
	(Aux_item_trigger_mapping): Likewise.
	(parse_aux_item_definitions): Declaration added.
	* src/server/aux-item-def.y: 
	(aux_item_def_typename): Added const qualifier to the return value.
	(aux_item_def_check_assign): Added const qualifier to the id argument.
	(aux_item_def_check_trigger): Added const qualifier to the
	check_name argument.
	* src/server/admin.c (shutdown_kom): Flag unused arguments.
	(rcsid): Added a missing const.
	* src/include/services.h: Renamed a few parameter names to avoid
	warnings from gcc.
	* src/server/prot-a-output.h: Likewise.
	* src/server/ram-output.h: Likewise.
	* src/libraries/libcommon/parser.h: Likewise.
	* src/server/manipulate.h: Likewise.
	* src/libraries/libcommon/kom-errno.c (rcsid): Added a missing const.
	* src/libraries/libcommon/misc-parser.c: Likewise.
	* src/libraries/libcommon/parser.c: Likewise.
	* src/libraries/libmisc/s-collat-tabs.c: Likewise.
	* src/server/cache-node.c: Likewise.
	* src/server/disk-end-of-atomic.c: Likewise.
	* src/server/internal-connections.c: Likewise.
	* src/server/isc-malloc.c: Likewise.
	* src/server/isc-parse.c: Likewise.
	* src/server/memory.c: Likewise.
	* src/server/mux-parse.c: Likewise.
	* src/server/person.c: Likewise.
	* src/server/prot-a-parse.c: Likewise.
	* src/server/prot-a-send-async.c: Likewise.
	* src/server/prot-a.c: Likewise.
	* src/server/ram-smalloc.c: Likewise.
	* src/server/regex-match.c: Likewise.
	* src/server/send-async.c: Likewise.
	* src/server/string-malloc.c: Likewise.
	* src/server/text-garb.c: Likewise.
	* src/libraries/libansi/empty.c: Likewise.
	
	Remove some old unused files.
	* src/libraries/libmisc/zmalloc.c: Unused file removed.
	* src/libraries/libmisc/zmalloc.h: Unused file removed.
	* src/server/kom-types.c: Empty file removed.
	* scripts/Summarize-Headers: File removed.
	* scripts/List-Files: File removed.
	* src/libraries/libclient/.cvsignore: File removed.
	* src/libraries/libclient/Makefile.in: File removed.
	* src/libraries/libclient/async.c: File removed.
	* src/libraries/libclient/async.h: File removed.
	* src/libraries/libclient/client-Makefile.in: File removed.
	* src/libraries/libclient/client-malloc.h: File removed.
	* src/libraries/libclient/client.c: File removed.
	* src/libraries/libclient/client.h: File removed.
	* src/libraries/libclient/input.c: File removed.
	* src/libraries/libclient/input.h: File removed.
	* src/libraries/libclient/kom-types.c: File removed.
	* src/libraries/libclient/output.c: File removed.
	* src/libraries/libclient/output.h: File removed.
	* src/libraries/libclient/parse.c: File removed.
	* src/libraries/libclient/parse.h: File removed.
	* src/libraries/libclient/send.c: File removed.
	* src/libraries/libclient/send.h: File removed.
	* src/libraries/libclient/services.c: File removed.
	* src/libraries/libclient/services.h: File removed.

326
327
328
329
330
331
332
333
334
335
1998-07-07  Per Cederqvist  <ceder@gratia>

	Fixed spelling of the config file parameter "Max broadcast length".
	* src/server/server-config.c (parameters): Fixed mis-spelling of
	"Max broadcast length".
	* doc/man/lyskomd.8: Likewise.

	* doc/Protocol-A.texi: Minor errata.
	* doc/security-levels.txt: Converted from swascii to latin1.

336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
1998-06-10  David Byers  <davby@ida.liu.se>

	* src/server/membership.c (sub_member): Return KOM_NOT_MEMBER for
	secret memberships.

1998-06-08  David Byers  <davby@ida.liu.se>

	* src/server/membership.c (set_membership_type): New function.

	* src/server/prot-a-output.c (prot_a_output_membership): Output
	added_at. 
	(prot_a_output_member): Output added_at

	* src/server/membership.c (do_add_member): Set added_at.
	(get_members): Filter out added_at.

	* src/server/memory.c (init_membership): Init added_at.

	* src/server/ram-output.c (foutput_member_2): Added output of
 	added_at.

	* src/server/ram-parse.c (fparse_member_2): Added parsing of added_at.

	* src/include/kom-types.h: Added added_at to Membership och Member.

	* src/server/ram-parse.c (fparse_membership_2): Added parsning of
 	added_at.

	* src/server/ram-output.c (foutput_membership_2): Added output of
 	added_at.

Fri Jan 16 22:51:52 1998  David Byers  <davby@litefix.ida.liu.se>

	* src/include/kom-types.h (Aux_item_flags): Added dont_garb.

	* src/server/text-garb.c (garb_text): Check dont_garb aux-item
 	flag.

David Byers's avatar
David Byers committed
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
Mon Sep 22 19:06:05 1997  David Byers  <davby@litefix.ida.liu.se>

	* src/server/cache-node.h: New flags: snapshot and synced.

Sun Sep 21 21:16:28 1997  David Byers  <davby@litefix.ida.liu.se>

	* src/server/memory.c (copy_text_stat): Call copy_aux_item_list. 
	(copy_aux_item_list): New function.
	(copy_aux_item): New function.
	(copy_conference): Call copy_aux_item_list.
	(clear_conference): Free the aux_item_list
	(init_conference): Init the aux_item_list.
	(clear_text_stat): Free the aux_item_list.
	(init_text_stat): Init the aux_item_list.
	(init_aux_item_list): New function.

390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
Sat Sep 13 15:07:32 1997  David Byers  <davby@ida.liu.se>

	* run-support/aux-items.conf: New file. This is the aux-item
 	definition file.

	* src/server/aux-items.h: New file. Include this when using
 	aux-items.

	* src/server/aux-items.c: New file. Implements most of the
 	functionality associated with aux-items.

	* src/server/aux-item-def.l: New file. Implements the scanner for
 	the aux-item definition file parser.

	* src/server/aux-item-def.y: New file. Implements the aux-item
 	definition file parser.

	* src/server/text.c: Added support for aux-items. Set err_stat
 	whenever kom_errno is set.
	(create_text_old): Renamed from create_text. Use do_create_text.
	(create_text): New RPC function.
	(create_anonymous_text): New RPC function.
	(create_anonymous_text_old): Renamed from create_anonymous_text. 
	Use do_create_text.
	(do_create_text): New function similar to old create_text, but
 	with aux-item support.
	(count_recipients): Handle bcc-recpt.
	(find_recipient): Handle bcc-recpt.
	(do_add_bcc_recpt): New function to add bcc-recipient.
	(do_delete_misc): Handle bcc_recpt.
	(do_sub_recpt): Handle bcc_recpt.
	(sender): Handle bcc_recpt.
	(is_sender): Handle bcc_recpt.
	(is_comm_sender): Handle bcc_recpt.
	(skip_recp): Handle bcc_recpt.
	(is_member_in_recpt): Handle bcc_recpt.
	(filter_secret_info): Handle bcc_recpt.
	(text_read_access): Handle bcc_recpt.
	(do_delete_text): Handle bcc_recpt.
	(check_double_subm): Handle bcc_recpt.
	(check_double_comm): Handle bcc_recpt.
	(create_text_check_misc): Handle bcc_recpt.
	(create_text_add_miscs): Handle bcc_recpt.
	(add_recipient): Handle bcc_recpt.
	(filter_secret_info): Filter aux-items as well as misc-info.
	(create_text_add_aux): New function.
	(send_async_new_text_old): Renamed from send_async_new_text.
	(send_async_new_text): New function.
	(get_text_stat_old): Renamed from get_text_stat.
	(get_text_stat): New RPC function.
	(modify_text_info): New RPC function.
	(do_delete_text): Send async deleted text.

	* src/server/text-garb.c (garb_text): Handle bcc-recpt.

	* src/server/simple-cache.c: Set err_stat whenever kom_errno is
 	set.
	(cached_lookup_name): Set kom_errno to KOM_INTERNAL_ERROR is
 	parse() fails.
	(pre_sync): Write version 2 data file.
	(cached_delete_conf): Delete conference name from small_conf_arr.
	(pre_sync): Use foutput_info instead of writing it here.
	(init_cache): Return KOM_INTERNAL_ERROR on problems with the
 	files. Prettier handling of datafile versions (switch instead of
 	testing for one single version.) Call set_input_format to set the
 	input format. Use fparse_info to read info instead of parsing it
 	here. If we encounter an unknown key, print its offset.

	* src/server/session.c: Set err_stat whenever kom_errno is set.
	(accept_async): Return KOM_UNKNOWN_ASYNC if an unknown async
 	message is requested.
	(login_old): Test wheel bit (test removed from is_supervisor.)
	(login):  Test wheel bit (test removed from is_supervisor.)
	(disconnect):  Test wheel bit (test removed from is_supervisor.)

	* src/server/server-config.c (parameters): Add max_add_aux and
 	max_delete_aux. 
	(toplevel): Set AUX_DEF_FILE constant.

	* src/server/send-async.h: Declare new functions in send-async.c

	* src/server/send-async.c (async_new_text_old): Renamed from
 	async_new_text.
	(async_new_text): New function to send new new-text async.
	(async_send_group_message): Return KOM_MESSAGE_NOT_SENT on failure
 	because of no accepting recipient. Return KOM_FEATURE_DISABLED if
 	messages are disabled. Return INTERNAL_ERROR on an internal error.
	(async_deleted_text): New function to send new deleted-text async.

	* src/server/regex-match.c (lookup_regexp): Set err_stat when
 	kom_errno is set.

	* src/server/ramkomd.c:
	(initialize): Initialize aux-item definitions.
	(main): Handle -a and -c options, and user-selectable aux-item
 	definition file.

	* src/server/ram-parse.h: Declare new function in ram-parse.c

	* src/server/ram-parse.c: Better support for reading different
 	input formats by using solution similar to that in ram-output.c. 
	New variable input_format controls input format.
	(set_input_format): New function selects input format.
	(fparse_info_0): New function.
	(fparse_info_2): New function.
	(fparse_info): New function.
	(fparse_conference_2): New function.
	(fparse_conference_0): New function.
	(fparse_conference): New function.
	(fparse_person_0): New function.
	(fparse_person_2): New function.
	(fparse_person): New function.
	(fparse_text_stat_2): New function.
	(fparse_text_stat_0): New function.
	(fparse_text_stat): New function.
	(fparse_aux_item_flags): New function to read aux-item flags.
	(fparse_aux_item): New function to read an aux-item.
	(fparse_aux_item_list): New function to read an aux-item-list.
	(fparse_misc_info): Parse bcc-recpt.

	* src/server/ram-output.h: Declare new functions in ram-output.c

	* src/server/ram-output.c: Better support for writing different
 	output formats by using foutput_something_<version> and a switch
 	in foutput_something. New variable output_format selects output
 	format.
	(set_output_format): New function to select output format.
	(foutput_info_0): New function.
	(foutput_info_2): New function.
	(foutput_info): New function.
	(foutput_person_0): New function.
	(foutput_person_2): New function.
	(foutput_person): New function.
	(foutput_conference_2): New function.
	(foutput_conference): New function.
	(foutput_text_stat_0): New function.
	(foutput_text_stat_2): New function.
	(foutput_text_stat): New function.
	(foutput_aux_flags): New function to output aux-item flags.
	(foutput_aux_item): New function to output aux-items.
	(foutput_aux_item_list): New function to output aux-item-lists.
	(foutput_misc_info): Output bcc-recpt.

	* src/server/prot-a.c (prot_a_reply): Added support for new and
 	renamed return types: rt_conference, rt_conference_old,
 	rt_text_stat, rt_text_stat_old, rt_info, rt_info_old.
	(prot_a_init): Initialize aux_item_list of Connection.
	(prot_a_destruct): Clear the aux_item_list in Connection.
	(prot_a_is_legal_fnc): Add support for new and changed RPC calls
 	(see entry for fncdef.txt.)

	* src/server/prot-a-send-async.h: Declare new functions in
 	prot-a-send-async.c

	* src/server/prot-a-send-async.c (prot_a_async_new_text_old):
 	Renamed from prot_a_async_new_text.
	(prot_a_async_new_text): New async message function.
	(prot_a_async_deleted_text): New async message function.

	* src/server/prot-a-parse.h: Declare new functions in
 	prot-a-parse.c

	* src/server/prot-a-parse.c (prot_a_parse_aux_item_flags): New
 	function.
	(prot_a_parse_aux_item): New function.
	(prot_a_parse_aux_item_list): New function.
	(prot_a_parse_misc_info): Parse bcc_recpt info type.

	* src/server/prot-a-output.h: Declare new functions in
 	prot-a-output.c

	* src/server/prot-a-output.c (prot_a_output_conference): New
 	output function.
	(prot_a_output_conference_old): Renamed from old
 	prot_a_output_conference.
	(prot_a_output_aux_item_flags): New function.
	(prot_a_output_aux_item): New function.
	(prot_a_output_text_stat_old): Renamed from
 	prot_a_output_text_stat.
	(prot_a_output_aux_item_list): New function.
	(prot_a_output_text_stat): New function.
	(prot_a_output_info): New function.
	(prot_a_output_info_old): Renamed from prot_a_output_info.
	(prot_a_output_misc_info): Output bcc_recpt misc type.

	* src/server/person.c: Added support for aux-items. Set err_stat
 	whenever kom_errno is set.
	(create_person_generic): Moved all generic create_person code to
 	this function.
	(create_person_old): Renamed from create_person, use
 	create_person_generic.
	(create_person): New RPC function.
	(set_passwd): Test wheel bit when doing is_supervisor (test
 	removed from is_supervisor.)

	* src/server/param.h: Added max_delete_aux, max_add_aux to struct
 	kom_par.

	* src/server/memory.c (free_aux_item_list): New function to free
 	all data in an Aux_item_list.

	* src/server/membership.c: Set err_stat whenever kom_errno is set. 
	(access_perm): Test wheel bit (test removed from is_supervisor.)
	(add_member): Test wheel bit (test removed from is_supervisor.)

	* src/server/manipulate.h: Set err_stat whenever kom_errno is set. 
	Declare is_strictly_supervisor.

	* src/server/kom-memory.h: Declare free_aux_item_list.

	* src/server/internal-connections.c (init_connection): Clear
 	aux_item and aux_item_list fields of Connection. Clear
 	aux_item_list field of Info.

	* src/server/fncdef.txt: Added comments to separate protocol
 	versions. New calls: get_collate_table, create_text,
 	create_anonymous_text, create_conf, create_person, get_text_stat,
 	get_conf_stat, modify_text_info, modify_conf_info, get_info,
 	modify_server_info, query_predefined_aux_items, set_expire. 
	Renamed calls: get_text_stat to get_text_stat_old,
 	get_conf_stat_old to get_conf_stat_older, get_conf_stat to
 	get_conf_stat_old, get_info to get_info_old, create_conf to
 	create_conf_old, create_pers to create_pers_old, create_text to
 	create_text_old, create_anonymous_text to
 	create_anonymous_text_old.

	* src/server/dbck.c (check_misc_infos): Handle m_bcc_recpt.
	(is_recipient): Handle bcc_recpt.
	(main): Use set_output_format to select the output format.

	* src/server/dbck-cache.c: Set err_stat whenever kom_errno is set.
	(cache_sync): Use foutput_info instead of outputting the info
 	here.
	(cache_sync): Call foutput_conference, not foutput_conference_old. 
	ram-output now takes care of selecting the correct version to
 	write.
	(init_cache): Use fparse_info instead of reading the info here. 

	* src/server/connections.h: (Connection): Add aux_item_list and
 	aux_item.
	(Res_type): Renamed return types: rt_conference to
 	rt_conference_old. rt_text_stat to rt_text_stat_old, rt_info to
 	rt_info_old. Addet rt_conference, rt_text_stat and rt_info.
	(Result_holder): Added conference_old, text_stat_old and info_old.

	* src/server/connections.c: Include kom-memory.h. Set err_stat
 	whenever kom_errno is set.
	(free_parsed): Free data in aux_item and aux_item_list.

	* src/server/conference.c: Added support for aux-items. Set
 	err_stat whenever kom_errno is set.
	(is_strictly_supervisor): New function.
	(is_supervisor): Use is_strictly_supervisor. Don't test the wheel
 	bit of ACTPERS.
	(create_conf_generic): Moved generic create_conf code here.
	(create_conf_old): Renamed from create_conf. Use
 	create_conf_generic.
	(create_conf): New RPC function.
	(get_conf_stat): New RPC function.
	(get_conf_stat_old): Renamed from get_conf_stat
	(modify_conf_info): New RPC function.
	(set_expire): New RPC function.

	* src/server/call-switch.awk: Parse aux_item_list. 

	* src/server/async.h: Added ay_new_text, ay_deleted_text. Renamed
 	old ay_new_text to ay_new_text_old.

	* src/server/admin.c (modify_server_info): New RPC function.
	(toplevel): Update initializer for kom_info. 
	(all): Set err_stat whenever kom_errno is set.
	(get_info): New function. Old get_info is not get_info_old.
	(get_collate_table): New RPC function.


	* src/server/Makefile.src: Added the new files to source lists. 
	Rules to build aux-item-parser and scanner added.

	* src/libraries/libcommon/misc-parser.h: Added m_bcc_recpt to
 	Misc_struct_type. Added bcc_recipient to Misc_info_group struct.

	* src/include/services.h: Declared all new RPC functions and
 	renamed the now obsolete ones. New functions are: create_person,
 	create_conf, create_text, get_conf_stat, get_text_stat,
 	create_anonymous_text, modify_conf_info, modify_text_info,
 	get_info, modify_server_info, get_collate_table, set_expire,
 	query_predefined_aux_items

	* src/include/kom-errno.h (KOM_err): Added KOM_ILL_AUX,
 	KOM_AUX_PERM, KOM_UNKNOWN_ASYNC, KOM_INTERNAL_ERROR,
 	KOM_FEATURE_DISABLED, KOM_MESSAGE_NOT_SENT.

	* src/include/config.h: Added AUX_DEF_FILE.

	* run-support/Makefile.src: Install aux-items.conf.

	* doc/man/lyskomd.8: Documented aux-item related settings.

	* doc/lyskomd-database-format: Documented data file version 2.

	* doc/Protocol-A.texi: Completed all calls, asynch messages, data
 	structures, error codes. Documented protocol version 10.

	* db-crypt/db/lyskomd-data: Updated to data file version 2.

	* configure.in: Check for bison and flex (can't use the regular
 	YACC and LEX tests since we need bison and flex specifically.)

	* INSTALL: Mention that bison and flex may be needed for
 	installation.

701
702
703
704
705
Wed Jul 23 22:40:08 1997  Per Cederqvist  <ceder@gratia>

	* src/server/conference.c (get_uconf_stat): Added a comment about
	a bug that needs to be fixed.

706
707
708
709
710
711
712
Sun Jul 20 16:04:23 1997  Per Cederqvist  <ceder@lysator.liu.se>

	The regexp code could use the wrong collate table.
	* src/server/regex-match.c (lookup_regexp): Use
	DEFAULT_COLLAT_TAB, not swedish_collate_tab.  (Reported by David
	Byers).

Per Cederqvist's avatar
Per Cederqvist committed
713
714
715
716
717
718
719
720
Fri Jun  6 23:16:28 1997  Per Cederqvist  <ceder@lysator.liu.se>

	Port to AIX.
	* src/server/local-to-global.c: Include stdlib.h instead of the
	non-standard malloc.h.
	* configure.in: Create src/server/Makefile before
 	src/server/testsuite/Makefile.

721
722
723
724
725
726
727
728
729
Sun Dec 29 15:55:44 1996  Per Cederqvist  <ceder@lysator.liu.se>

	* doc/prot-A.txt: 59=create-anonymous-text, 78=get-uconf-stat,
	58=get-last-text and 77=set-last-read are recommended, not
	experimental.  Fixed bug in declaration of
	Dynamic-Session-Info-List.

	* src/server/Makefile.in (GENOBJS): Added local-to-global.o.

inge's avatar
inge committed
730
731
732
733
734
735
736
Thu Sep 12 19:14:39 1996  Inge Wallin  <inge@lysator.liu.se>

	* local-to-global.h: Added code for an iterator.
	* local-to-global.c: Added code for an iterator.

	* kom-types.h: Include some files which are used here.

inge's avatar
inge committed
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
Sun Sep  1 21:32:22 1996  Inge Wallin  <inge@lysator.liu.se>

	* (l2g_delete): Delete the block if empty.
	* local-to-global.c (delete_block): New function

	* local-to-global.c (l2g_destruct): Don't free blocks.
	* (l2g_clear): Only free if non-NULL.
	* (l2g_copy): more efficient code.

	* local-to-global.h, local-to-global.c (l2g_print): Renamed to
	l2g_write.	
	* (l2g_read, l2g_write): Now implemented.
	
	* log.h: Include stdarg.h if possible.

Per Cederqvist's avatar
Per Cederqvist committed
752
753
754
755
Sun Aug 25 14:47:16 1996  Per Cederqvist  <ceder@lysator.liu.se>

	* src/server/Makefile.src (GENOBJS): Added local-to-global.o.
	* src/server/local-to-global.c: New file, written by Inge Wallin.
756

757
	Disconnect spamming clients:
758
759
760
761
	* src/server/prot-a-parse.c (prot_a_get_token): Disconnect the
 	client if it attempts to send a token (other than a string) that
 	is longer than 1000 characters.

762
	Delete obsolete code:
763
764
765
766
767
	* src/libraries/libcommon/kom-errno.c (kom_perror): Removed
	KOM_NO_CONNECT.
	* src/include/kom-errno.h (Kom_err): Removed the unused value
	KOM_NO_CONNECT.

768
	Purify support:
769
770
771
772
773
774
775
776
777
778
779
780
	* scripts/mkmi.m4 (PURIFY): New make variable.
	* configure.in: New argument --with-purify enables debugging with
	Purify.
	* src/server/Makefile.src (lyskomd): Added $(PURIFY) in front of
	the link line.
	(updateLysKOM): Likewise.
	(dbck): Likewise.

	* src/server/local-to-global.c: Include <sys/types.h>, <time.h>
	and "s-string.h".
 	(l2g_next_key): Don't dereference memory past the last block!

781
	Test suite integration:
782
783
	* configure.in: Generate src/server/testsuite/Makefile.  Touch
 	src/server/testsuite/dependencies.
Per Cederqvist's avatar
Per Cederqvist committed
784
785
	* src/server/testsuite/Makefile.src: New file.
	* mkmi: Added src/server/testsuite/Makefile.
786
	* src/server/testsuite/l2g.0/00.exp: New file.
Per Cederqvist's avatar
Per Cederqvist committed
787
788
789
	* src/server/testsuite/l2g.0/01.exp: New file, containing real
	data from the map of conference 603 (LysKOM; Elispklientens
	buggrapporter) in LysLysKOM.
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
	* src/server/testsuite/config/unix.exp: New file.
	* src/server/testsuite/test-l2g.c: New file.

	* For older changes, see ChangeLog.1, src/include/ChangeLog.1,
 	src/server/ChangeLog.1, src/libraries/libcommon/ChangeLog.1, and
 	src/libraries/libmisc/ChangeLog.1.  Starting today, all changes in
 	those directories should be documented in this file.

	Not that local changes to foreign libraries that are included in
 	this distribution should still be documented in a ChangeLog in
 	their directory, so that somebody who looks at them can see what
 	we have modified.  As of this writing, the following ChangeLog
 	files fall into this category: src/libraries/gnumalloc/ChangeLog,
 	src/libraries/libisc-new/src/ChangeLog,
 	src/libraries/regex/ChangeLog and
 	src/libraries/regex/test/ChangeLog.