added some Log warnings to show log_setup works. Also fixed a bug where null values were passed to the function. Also altered the code to print time, from gmtime to localtime
sibaz [Mon, 25 Mar 2002 00:03:25 +0000 (00:03 +0000)]
added a function to allow other code to setup logs by specifying the text strings appropriate, rather than the numerical values. In the process I added facility to the global log structure. It seemed appropriate
sibaz [Sun, 24 Mar 2002 14:18:56 +0000 (14:18 +0000)]
added strings for the loglevels (for use in conf file) and added a new logtype, afpd. Also added a function so config file parsers can add logtypes to the list without having to know anything about logtypes
morgana [Wed, 20 Mar 2002 20:53:57 +0000 (20:53 +0000)]
Fix some issues with CAP-style printer authentication by changing where the
cleanup occurs to afp_asp_close() and storing the pid of afpd in the CAP file.
Credit goes to Sam Noble <ns@shadow.org> for this patch.
morgana [Tue, 19 Mar 2002 23:23:51 +0000 (23:23 +0000)]
Update man page and papd.conf template file to note requirement that the printer
zone must be defined if more than 15 printers are used with papd. Otherwise,
the Mac Chooser may not show all the printers.
jmarcus [Sat, 16 Mar 2002 20:38:09 +0000 (20:38 +0000)]
1. When in debug mode, print out the AFP function call names as well as their
numeric ids.
2. Don't advertise server sided notifications if AFP version < 2.1.
jmarcus [Thu, 7 Mar 2002 16:06:01 +0000 (16:06 +0000)]
Do not immediately return if an application requests data beyond the end
of file. Photoshop has a tendancy to do this with the result being that
the server reports file corruption.
I have tested this locally on my 1.5.2 server.
Prompted by: many users
Suggested fix by: Netatalk <atalk@abarrach.franken.de>
MFH after: 3 days
jmarcus [Thu, 14 Feb 2002 05:59:51 +0000 (05:59 +0000)]
Fix the error message reported when of_find fails to find a valid fork. Since
of_find() doesn't set errno, there's really no since in calling strerror()
on a "dirty" value.
srittau [Wed, 13 Feb 2002 16:56:20 +0000 (16:56 +0000)]
NetBSD fix by Juergen Hannken-Illjes. First network is now set to 1 instead
of 0. I'm really not sure what this does and if it breaks something on
other platforms. So please *test*.
jmarcus [Sat, 9 Feb 2002 17:13:52 +0000 (17:13 +0000)]
Redo the server notification flag. Revert to having server notifications
enabled by default, and rename the flag to -client_polling which will
disable server notifications.
jmarcus [Fri, 8 Feb 2002 16:42:31 +0000 (16:42 +0000)]
Fix for two things:
(1) General: Using --enable-srvloc results in compile-time errors when
libslp.a is not installed in a standard location searched by the linker.
This is due to the missing third argument in AC_CHECK_LIB(slp,
SLPOpen, , AC_MSG_ERROR([SLP installation not found])) on line 32 in
macros/srvloc.m4: This sets LIBS="-lslp $LIBS" globally in configure,
instead of just setting SLP_LIBS and SLP_CFLAGS.
(2) Tru64-specific: In libatalk/utils/logger.c, the function vsnprintf()
is used. Up to and including version 4.0F, Tru64 doesn't have this
function in its standard C library, although the DEC C compiler has a
prototype for it. Instead, vsnprintf() is contained in libdb.a (not to
be confused with libdb3.a), which must be given as a separate flag to
the linker.
jmarcus [Thu, 7 Feb 2002 21:45:07 +0000 (21:45 +0000)]
Automatically detect the temp directory. The tmpdir() code is taken from
File::Spec, and brought to my attention by MacMan One <power2themacs@yahoo.com>.
jmarcus [Wed, 6 Feb 2002 21:58:47 +0000 (21:58 +0000)]
Add the -server_notif server flag to specify whether or not to advertise
server notification support. If this flag is not specified, then the clients
will poll the server every 10 seconds for directory changes.
morgana [Sun, 3 Feb 2002 22:03:59 +0000 (22:03 +0000)]
Make bin/afppasswd setuid root during install. This lets local users call
afppasswd to update their afppasswd password, similar to the standard unix
passwd program. Fixes sourceforge bug #230524.
jmarcus [Sun, 3 Feb 2002 04:57:38 +0000 (04:57 +0000)]
Fix a race condition on reading and writing data to the same fork. Also,
correct a lock contention issue where one afpd process could lock a
byte region, and then only unlock part of that region. The next afpd
process to access the same reason would receive AFPERR_LOCK. Submitted by
didier <dgautheron@magic.fr>.