danw [Thu, 13 May 1999 18:52:27 +0000 (18:52 +0000)]
initial commit of libmrclient, a library containing code shared by
multiple clients. (especially for the cases where only one of those
clients was doing the right thing)
cast result of strlen to (int) so that "COLS - strlen(buf)" will be an
int instead of being "promoted" to an unsigned int, so that "COLS -
strlen(buf) > 0" is actually a meaningful test. Noticed by Irix n32
cc. Fixes a bug which has presumably been in the moira client display
code ever since it was written.
danw [Tue, 30 Mar 1999 04:00:28 +0000 (04:00 +0000)]
generate a bootptab entry for any printer with an hwaddr, not just HPs.
(But only generate T144 entries for HPs.)
Output hp files as /var/boot/hp/foo.new so boot.sh can rename them
danw [Wed, 3 Feb 1999 18:27:08 +0000 (18:27 +0000)]
Various tftp file fixes: don't list a trap-dest if none is known,
don't leave 'contact' and 'location' fields empty, don't output tftp
files for ALIAS printers (since there will already be another one
output for the real printer.)
danw [Fri, 29 Jan 1999 23:35:17 +0000 (23:35 +0000)]
sync the list of illegal-list-name characters to the list in mailhub.pc
since mailhub.gen now ignores lists with names it considers illegal.
(There are no active lists in moira using the newly-reserved characters.)
danw [Tue, 19 Jan 1999 03:25:44 +0000 (03:25 +0000)]
Make the flow of control more obvious by removing a lot of code that
isn't doing anything useful since we removed lastname and
firstname_lastname aliases.
danw [Mon, 18 Jan 1999 21:44:34 +0000 (21:44 +0000)]
- Rewrite address output code to use more obvious variable names,
no global variables, and more comments.
- Check list table in addition to user table when starting
(fixes [1242] in moira)
- Save time by only loading the machines that are used as POP servers,
instead of all of them.
(none of these change the output at all)
danw [Tue, 29 Dec 1998 02:11:27 +0000 (02:11 +0000)]
add a "-q" (quote output) option so mrtest-parsing scripts can tell
newlines and commas in the content apart from newlines and commas as
delimiters. Not that there are any mrtest-parsing scripts or anything.
danw [Sun, 20 Dec 1998 21:26:33 +0000 (21:26 +0000)]
make department and xdept 50-characters long to match the Data
Warehouse. (We had previously been getting abbreviated names like
"Elec Eng & Comp Sci", but the Warehouse has names like "Electrical
Engineering & Computer Science, Dept Of", which we don't want to just
truncate)
danw [Sun, 20 Dec 1998 21:23:18 +0000 (21:23 +0000)]
fix FixCase() to only capitalize the letter after an apostrophe if the
apostrophe is the second character in the word. (eg, "O'BRIEN" ->
"O'Brien", but "PRESIDENT'S OFFICE" -> "President's Office", not
"President'S Office".)
danw [Mon, 14 Dec 1998 18:53:33 +0000 (18:53 +0000)]
Allow hostname to start with a digit in hostname_check, but disallow it
in access_host/access_ahal. (So you can make hostnames start with a number
only if you're on the query acl.)
danw [Tue, 10 Nov 1998 19:08:04 +0000 (19:08 +0000)]
Check the length of a new user's full name against USERS_FULLNAME_SIZE
in case that's shorter than USERS_FIRST_SIZE + USERS_MIDDLE_SIZE +
USERS_LAST_SIZE (which it is at the moment)
danw [Tue, 10 Nov 1998 19:06:31 +0000 (19:06 +0000)]
use "login = :argv[0]" instead of "login LIKE :argv[0]" in access_login:
we haven't done regexp conversion on the string yet, and if we're in
access_login, the user doesn't have bits to use regexps on this query
anyway