sibaz [Sat, 24 Aug 2002 05:00:06 +0000 (05:00 +0000)]
reorganised the log messages, fixed the typo conscerning unsetuplog in afp_options, and added an example to the afpd.conf.tmpl file (and removed the warning)
sibaz [Sat, 24 Aug 2002 03:47:37 +0000 (03:47 +0000)]
doh, the code was looking up the loglevel against a table, then using the position in that table as the value, the enum was ten times that. That was all that was causing problems. I've altered the loglevels table to reflect this, by making the more debug levels go debug, debug6, debug7, debug8, debug9, maxdebug, all of which correspond to their enum values except divided by ten
sibaz [Sat, 24 Aug 2002 02:12:43 +0000 (02:12 +0000)]
renamed the -setuplogtype optione to -[un]setuplog, where unsetting a log simply sets its loglevel to severe. Added usage notes in afpd.conf.tmpl, and allowed for the fact that not all parameters are neccesarily defined (specifying unsetuplog will drop the loglevel parameter)
sibaz [Sat, 24 Aug 2002 01:32:19 +0000 (01:32 +0000)]
altered the format that setuplog works so one less parameter is needed. This untested, but I'm pretty sure it'll work as intended. Use at -setuplog option at your own risk
jmarcus [Thu, 20 Jun 2002 02:15:09 +0000 (02:15 +0000)]
If just one user was logged in to Netatalk, cnid_maint would kick that
user off. This was due to an off-by-one error in calculating the afpd
child process.
jmarcus [Sun, 2 Jun 2002 22:34:36 +0000 (22:34 +0000)]
Allow mangling to work correctly when moving and copying files. The
downside of this is that the mangling database currently has no way to
purge itself. I'll work on that next.
jmarcus [Thu, 30 May 2002 06:41:16 +0000 (06:41 +0000)]
First round of mangling debugging. This should actually work. I ran into
some problems with read-only files, but that may be a product of 1.6cvs, and
not necessarily my code.
jmarcus [Wed, 29 May 2002 18:02:57 +0000 (18:02 +0000)]
Add support for long filename mangling. Basically, tis code will take
filenames greater than MACFILELEN characters, and mangle them much like
DOS does. The mangled filenames are stored in a Berkeley database per
volume.
NOTE: This code is _not_ tested, and may cause data loss. Use at your own
risk. To enable it, configure with --with-mangling.
rufustfirefly [Thu, 23 May 2002 15:58:55 +0000 (15:58 +0000)]
patch #547180 for unprintable characters in psf. Previous behavior was to simply die, now prints a question mark. (Jason R. McVetta <jmcvetta@users.sourceforge.net>)
sibaz [Tue, 14 May 2002 18:47:06 +0000 (18:47 +0000)]
surrounded new function body with the #ifdef that turns it off when --without-logfile is set. Looking at it though this whole file should be turned off when --without-logfile is set, and the LOG macro should just ignore the unused parameters and send a ... with all the vprintf parameters to syslog, thus rendering the code that's left, unneeded
jmarcus [Mon, 13 May 2002 04:59:36 +0000 (04:59 +0000)]
A big patch to correct many afpd problems. For one, the trash will
work in multi-user environments. This should also correct the
read-write/read-only lock issues.
This is a bug patch, and should be thoroughly tested.
morgana [Tue, 7 May 2002 04:55:26 +0000 (04:55 +0000)]
Updates from Patrick Powell (papowell@astart.com)
- made debug a command line option (-d) rather than a compile time option
- updated usage message with all available options
- print out status in postscript (%%[ .. ]%%) format
- print status to stderr if statusfile not specified
| Here's a patch correcting the problem with Adobe Illustrator.
| However this seems to be a bigger problem with opening forks
| in RO/RW mode. This patch may introduce some other problems
| with forks: RO forks may be writable in some circumstances,
| however I'm not familiar enough with netatalk internals, so I cannot
| tell definitely what else can I break with this patch.
Hardcode LD=ld to make it link in Solaris 8 with Sun's C Compiler. If this breaks other platforms, we'll need to figure out how to autodetect or just make it a manual option set in the Makefile.
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.