netatalk.git
9 years agoInitialize AFPobj for AFP over AT too before-renameat
franklahm [Tue, 9 Mar 2010 06:55:12 +0000 (06:55 +0000)]
Initialize AFPobj for AFP over AT too

9 years agoacltoownermode: check if UUID support is on
franklahm [Mon, 8 Mar 2010 19:49:59 +0000 (19:49 +0000)]
acltoownermode: check if UUID support is on

9 years agoad_metadata don't try to open adouble file read write if ADFLAGS_CREATE is not set
didg [Sun, 7 Mar 2010 18:27:59 +0000 (18:27 +0000)]
ad_metadata don't try to open adouble file read write if ADFLAGS_CREATE is not set

9 years agoprevious commit 'use ad_close_metadata after ad_metadata' didn't compile
didg [Tue, 2 Mar 2010 18:07:13 +0000 (18:07 +0000)]
previous commit 'use ad_close_metadata after ad_metadata' didn't compile

9 years agocosmetic: use ad_close_metadata after ad_metadata
didg [Tue, 2 Mar 2010 13:29:31 +0000 (13:29 +0000)]
cosmetic: use ad_close_metadata after ad_metadata

9 years agostreamline deletefile, open the resource fork only once
didg [Tue, 2 Mar 2010 12:45:31 +0000 (12:45 +0000)]
streamline deletefile, open the resource fork only once

9 years agoad_open: unset O_TRUNC and O_CREAT in adf_flags if the resource fork is already open
didg [Mon, 1 Mar 2010 21:11:06 +0000 (21:11 +0000)]
ad_open: unset O_TRUNC and O_CREAT in adf_flags if the resource fork is already open

9 years agocreate_special_folder: cosmetic, replace ad_open with ad_open_metadata
didg [Mon, 1 Mar 2010 05:05:46 +0000 (05:05 +0000)]
create_special_folder: cosmetic, replace ad_open with ad_open_metadata

9 years agoprevious commit 'lchdir: use chdir + getcwd' was only testing for symlink outside...
didg [Sun, 28 Feb 2010 22:29:15 +0000 (22:29 +0000)]
previous commit 'lchdir: use chdir + getcwd' was only testing for symlink outside the volume's root directory, hopefully this one is correct

9 years agolchdir: use chdir + getcwd
didg [Sun, 28 Feb 2010 17:02:49 +0000 (17:02 +0000)]
lchdir: use chdir + getcwd

9 years agoad_size: if it's a symlink don't use fstat
didg [Fri, 26 Feb 2010 14:13:16 +0000 (14:13 +0000)]
ad_size: if it's a symlink don't use fstat

9 years agolock don't call fcntl if fd == 0, it's a symlink
didg [Fri, 26 Feb 2010 12:57:50 +0000 (12:57 +0000)]
lock don't call fcntl if fd == 0, it's a symlink

9 years agogetforkparms: lstat the symlink not /dev/null
didg [Fri, 26 Feb 2010 12:31:02 +0000 (12:31 +0000)]
getforkparms: lstat the symlink not /dev/null

9 years agoDefault type/creator. From HAT
franklahm [Mon, 22 Feb 2010 08:51:03 +0000 (08:51 +0000)]
Default type/creator. From HAT

9 years agoMove lchdir() to libatalk/util/unix.c and use that in catsearch.c.
franklahm [Fri, 19 Feb 2010 11:29:51 +0000 (11:29 +0000)]
Move lchdir() to libatalk/util/unix.c and use that in catsearch.c.

9 years agoRemove v_realpath from struct dir, normalize v_path instead
franklahm [Fri, 19 Feb 2010 10:51:59 +0000 (10:51 +0000)]
Remove v_realpath from struct dir, normalize v_path instead

9 years agouse volume real path for chdir
didg [Fri, 19 Feb 2010 01:26:03 +0000 (01:26 +0000)]
use volume real path for chdir

9 years agomove static variables only used in catsearch inside the function, test for chdir...
didg [Fri, 19 Feb 2010 00:32:22 +0000 (00:32 +0000)]
move static variables only used in catsearch inside the function, test for chdir return code, we have to use symlink safe chdir here

9 years agoOSX return AFPERR_NOOBJ rather than AFPERR_PARAM
didg [Thu, 18 Feb 2010 08:08:01 +0000 (08:08 +0000)]
OSX return AFPERR_NOOBJ rather than AFPERR_PARAM

9 years agokeep the source file open when parsing parameters in afp_copyfile. Really return...
didg [Thu, 18 Feb 2010 02:02:30 +0000 (02:02 +0000)]
keep the source file open when parsing parameters in afp_copyfile. Really return an error if dest dir is not a dir, AFAIK this parameter is always empty

9 years agolog type_configs data is used by uams modules, define it as UAM_MODULE_EXPORT
didg [Wed, 17 Feb 2010 01:46:14 +0000 (01:46 +0000)]
log type_configs data is used by uams modules, define it as UAM_MODULE_EXPORT

9 years agoin setfilparam when switching to a symlink use of_stat rathert than lstat, of_stat...
didg [Wed, 17 Feb 2010 01:41:58 +0000 (01:41 +0000)]
in setfilparam when switching to a symlink use of_stat rathert than lstat, of_stat also set path->errno

9 years agoremove a gcc warning: 'suggest parentheses around assignment used as truth value'
didg [Wed, 17 Feb 2010 01:19:51 +0000 (01:19 +0000)]
remove a gcc warning: 'suggest parentheses around assignment used as truth value'

9 years agouse the right test for noadouble volumes
didg [Tue, 16 Feb 2010 02:43:36 +0000 (02:43 +0000)]
use the right test for noadouble volumes

9 years agoremove a gcc warning: ‘static’ is not at beginning of declaration
didg [Tue, 16 Feb 2010 02:37:38 +0000 (02:37 +0000)]
remove a gcc warning: ‘static’ is not at beginning of declaration

9 years agoFix some uninitialized warnings
franklahm [Mon, 15 Feb 2010 13:58:38 +0000 (13:58 +0000)]
Fix some uninitialized warnings

9 years agoMake LOG macro fast again
franklahm [Mon, 15 Feb 2010 12:00:36 +0000 (12:00 +0000)]
Make LOG macro fast again

9 years agoLast manpage checkin from XML sources before 2.1beta1 release netatalk-2-1-beta1
franklahm [Sun, 14 Feb 2010 11:18:38 +0000 (11:18 +0000)]
Last manpage checkin from XML sources before 2.1beta1 release

9 years agoUpdate
franklahm [Sun, 14 Feb 2010 10:47:46 +0000 (10:47 +0000)]
Update

9 years agoSome stuff was missing
franklahm [Thu, 11 Feb 2010 16:01:18 +0000 (16:01 +0000)]
Some stuff was missing

9 years agoMerge symlink branch HEAD-after-symlink-merge
franklahm [Wed, 10 Feb 2010 14:05:36 +0000 (14:05 +0000)]
Merge symlink branch

9 years agoShow CNID defaults in configure --help HEAD-before-symlink-merge
franklahm [Tue, 9 Feb 2010 14:17:31 +0000 (14:17 +0000)]
Show CNID defaults in configure --help

9 years agotdb CNID backend must be enabled by default
franklahm [Tue, 9 Feb 2010 14:06:53 +0000 (14:06 +0000)]
tdb CNID backend must be enabled by default

9 years agoSIGINT enables max_debug logging to /tmp/afpd.PID.XXXXXX
franklahm [Mon, 8 Feb 2010 13:39:56 +0000 (13:39 +0000)]
SIGINT enables max_debug logging to /tmp/afpd.PID.XXXXXX

9 years agoRemove volume option debugfile
franklahm [Mon, 8 Feb 2010 10:29:22 +0000 (10:29 +0000)]
Remove volume option debugfile

9 years agogcrypt version is a string
franklahm [Sat, 6 Feb 2010 09:53:02 +0000 (09:53 +0000)]
gcrypt version is a string

9 years ago2.1beta1
franklahm [Thu, 4 Feb 2010 10:53:03 +0000 (10:53 +0000)]
2.1beta1

9 years agovolume option debugfile
franklahm [Thu, 4 Feb 2010 10:52:29 +0000 (10:52 +0000)]
volume option debugfile

9 years agoShow msg dir in afpd -V
franklahm [Wed, 3 Feb 2010 11:35:58 +0000 (11:35 +0000)]
Show msg dir in afpd -V

9 years agomegatron, fix errors introduced in Sun Feb 6 10:16:00 2005 commit, 'replace a wrong... branch-dircache-rewrite-start
didg [Wed, 27 Jan 2010 21:27:53 +0000 (21:27 +0000)]
megatron, fix errors introduced in  Sun Feb 6 10:16:00 2005 commit, 'replace a wrong test for protecting against buffers underflow by ... a buffer underflow, always' .

9 years agouse open and fchdir rather than getcwd in catsearch
didg [Wed, 27 Jan 2010 12:36:42 +0000 (12:36 +0000)]
use open and fchdir rather than getcwd in catsearch

9 years agoremove a 'discard const ...' warning in papd cups
didg [Tue, 26 Jan 2010 20:43:11 +0000 (20:43 +0000)]
remove a 'discard const ...' warning in papd cups

9 years agouse the right test for file/dir invisible attribute bit modification and parent direc...
didg [Tue, 26 Jan 2010 20:39:52 +0000 (20:39 +0000)]
use the right test for file/dir invisible attribute bit modification and parent directory modification date update

9 years agoRemove mtab CNID backend
franklahm [Tue, 26 Jan 2010 18:13:48 +0000 (18:13 +0000)]
Remove mtab CNID backend

9 years agoprevious commit :don't send a server notification on volume time modification if...
didg [Tue, 26 Jan 2010 09:31:59 +0000 (09:31 +0000)]
previous commit :don't send a server notification on volume time modification if AFP > 3.1, client able to speak 3.2 are now smart enough, wasn't using the right test

9 years agoreturn the right error code when deleting afp current directory if it's already been...
didg [Tue, 26 Jan 2010 08:14:09 +0000 (08:14 +0000)]
return the right error code when deleting afp current directory if it's already been deleted by another afpd process

9 years agodon't use & in getcwd parameter
didg [Tue, 26 Jan 2010 08:05:17 +0000 (08:05 +0000)]
don't use & in getcwd parameter

9 years agodon't send a server notification on volume time modification if AFP > 3.1, client...
didg [Mon, 25 Jan 2010 18:39:05 +0000 (18:39 +0000)]
don't send a server notification on volume time modification if AFP > 3.1, client able to speak 3.2 are now smart enough

9 years agoReturn correct error if EA already exists
franklahm [Sat, 23 Jan 2010 14:54:43 +0000 (14:54 +0000)]
Return correct error if EA already exists

9 years agoMissing error codes
franklahm [Sat, 23 Jan 2010 14:44:42 +0000 (14:44 +0000)]
Missing error codes

9 years agoRemove cvsignore
franklahm [Fri, 22 Jan 2010 08:56:32 +0000 (08:56 +0000)]
Remove cvsignore

9 years agoadd/remove comment: test parent directory perms for volumes with unix priv too
didg [Fri, 22 Jan 2010 04:40:38 +0000 (04:40 +0000)]
add/remove comment: test parent directory perms for volumes with unix priv too

9 years agoafpd set the logger default to log_info and move some log msgs to log_debug
didg [Thu, 21 Jan 2010 14:14:49 +0000 (14:14 +0000)]
afpd set the logger default to log_info and move some log msgs to log_debug

9 years agotry to get the directory's cnid from the adouble header when adding it to the cache...
didg [Thu, 21 Jan 2010 12:10:19 +0000 (12:10 +0000)]
try to get the directory's cnid from the adouble header when adding it to the cache, from Frank

9 years agoMore logging
franklahm [Wed, 20 Jan 2010 13:22:13 +0000 (13:22 +0000)]
More logging

9 years agoFix for type (file/dir) mismatch in dbd_lookup. Also fixes:
franklahm [Tue, 19 Jan 2010 14:57:11 +0000 (14:57 +0000)]
Fix for type (file/dir) mismatch in dbd_lookup. Also fixes:
* db_strerror was called several times with the wrong variable
* factorize some functions, thereby also
* hide/encapsulate the problem of relative pathnames for logfiles and in check_upgrade

9 years agoFix to arg in log statement
franklahm [Tue, 19 Jan 2010 14:51:18 +0000 (14:51 +0000)]
Fix to arg in log statement

9 years agoAdd debug log statement to afp_getfildirparms.
franklahm [Mon, 18 Jan 2010 12:55:28 +0000 (12:55 +0000)]
Add debug log statement to afp_getfildirparms.
Add logging of AFP return code.

9 years agoEnumeration didn't write CNID data to adouble file when creating
franklahm [Mon, 18 Jan 2010 11:45:37 +0000 (11:45 +0000)]
Enumeration didn't write CNID data to adouble file when creating

9 years agoUpdate apple_dump:
franklahm [Sun, 17 Jan 2010 15:04:09 +0000 (15:04 +0000)]
Update apple_dump:
 * readbility
 * newer FinderInfo
 * warn and exit if both .AppleDouble/FILE and ._FILE exist.
 * dump EAs
From HAT.

9 years agoOutput of service atalk status was wrong
franklahm [Sat, 16 Jan 2010 13:02:34 +0000 (13:02 +0000)]
Output of service atalk status was wrong

9 years agoDont install PAM stuff if not requested
franklahm [Mon, 11 Jan 2010 13:06:02 +0000 (13:06 +0000)]
Dont install PAM stuff if not requested

9 years agoAdd debug message
franklahm [Mon, 11 Jan 2010 11:09:36 +0000 (11:09 +0000)]
Add debug message

9 years agoRemove struct dir.d_uname_len and its dependencies. It is now
franklahm [Sun, 10 Jan 2010 10:58:24 +0000 (10:58 +0000)]
Remove struct dir.d_uname_len and its dependencies. It is now
evaluated in the hash function itself.

9 years agoAdd some description of dir caching in afpd
franklahm [Wed, 6 Jan 2010 15:37:01 +0000 (15:37 +0000)]
Add some description of dir caching in afpd

9 years agoOnly update adouble file with CNID on mismatch.
franklahm [Wed, 6 Jan 2010 14:05:15 +0000 (14:05 +0000)]
Only update adouble file with CNID on mismatch.
ad_setid: compared sizeof(dev_t) with the wrong adouble entrylen.
ad_metadata: alos check if really ADVOL_CACHE for adouble file creation.

9 years agoForgot test for noadbouble vol in ad_metadata in previous commit
franklahm [Wed, 6 Jan 2010 12:59:10 +0000 (12:59 +0000)]
Forgot test for noadbouble vol in ad_metadata in previous commit

9 years agoReintroduce adouble file creation on enumeration
franklahm [Wed, 6 Jan 2010 11:08:53 +0000 (11:08 +0000)]
Reintroduce adouble file creation on enumeration

9 years agodirectories cache, update d_u_name_len when d_u_name is modified
didg [Wed, 6 Jan 2010 06:06:20 +0000 (06:06 +0000)]
directories cache, update d_u_name_len when d_u_name is modified

9 years agoMore doxygen style API documentation
franklahm [Tue, 5 Jan 2010 19:05:52 +0000 (19:05 +0000)]
More doxygen style API documentation

9 years agoRemove ADVOL_NOADOUBLE check. It prevented creation of .AppleDouble dirs
franklahm [Tue, 5 Jan 2010 15:46:13 +0000 (15:46 +0000)]
Remove ADVOL_NOADOUBLE check. It prevented creation of .AppleDouble dirs

9 years agoFixes for changed ADVOL_NOADOUBLE flag passing
franklahm [Tue, 5 Jan 2010 15:12:19 +0000 (15:12 +0000)]
Fixes for changed ADVOL_NOADOUBLE flag passing

9 years agoFix LOG call
franklahm [Tue, 5 Jan 2010 14:31:58 +0000 (14:31 +0000)]
Fix LOG call

9 years agoAdd static getcwd and use it for debugging in ad_open
franklahm [Tue, 5 Jan 2010 13:48:47 +0000 (13:48 +0000)]
Add static getcwd and use it for debugging in ad_open

9 years agoSubstitute ADFLAGS_NOADOUBLE with ADVOL_NOADOUBLE, which gets automatically stuffed...
franklahm [Tue, 5 Jan 2010 12:06:33 +0000 (12:06 +0000)]
Substitute ADFLAGS_NOADOUBLE with ADVOL_NOADOUBLE, which gets automatically stuffed into
struct adouble via ad_init. This eleminates the need to call vol_no_adouble(vol) every time
in ad_open in order to pass ADFLAGS_NOADOUBLE with adflags, instead inside ad_open the func checks
ad->ad_options.
Remove forced adouble file creation from ad_metadata, this broke the clean ad_* API semantics of
only creating files with O_CREATE. Instead do it explicitly in enumerate where the original force
adouble patch grew from.

9 years agoBeautify
franklahm [Tue, 5 Jan 2010 10:37:29 +0000 (10:37 +0000)]
Beautify

9 years agoStart adouble documentation in Doxygen style
franklahm [Mon, 4 Jan 2010 13:49:48 +0000 (13:49 +0000)]
Start adouble documentation in Doxygen style

9 years agoRename asaddump to apple_dump
franklahm [Mon, 4 Jan 2010 10:02:18 +0000 (10:02 +0000)]
Rename asaddump to apple_dump

9 years agoLots of improvements. From HAT
franklahm [Mon, 4 Jan 2010 09:46:39 +0000 (09:46 +0000)]
Lots of improvements. From HAT

9 years agoLast commit message mentionend the wrong CNID backends! branch-symlink-start
franklahm [Tue, 29 Dec 2009 10:07:32 +0000 (10:07 +0000)]
Last commit message mentionend the wrong CNID backends!
For clarity: these are now still avaialable:
        "last mtab cdb dbd tdb"

9 years agoremove hash files
franklahm [Tue, 29 Dec 2009 10:02:58 +0000 (10:02 +0000)]
remove hash files

9 years agoRemove db3 files
franklahm [Tue, 29 Dec 2009 09:58:45 +0000 (09:58 +0000)]
Remove db3 files

9 years agoNicely print dev/ino data. From HAT.
franklahm [Sun, 27 Dec 2009 09:50:45 +0000 (09:50 +0000)]
Nicely print dev/ino data. From HAT.

9 years agoCheckin all manpages freshly from XML for 2.1beta. Merry christmas!
franklahm [Thu, 24 Dec 2009 08:05:39 +0000 (08:05 +0000)]
Checkin all manpages freshly from XML for 2.1beta. Merry christmas!

9 years agoasaddump: dump AppleSingle/Double files. From HAT.
franklahm [Wed, 23 Dec 2009 15:53:15 +0000 (15:53 +0000)]
asaddump: dump AppleSingle/Double files. From HAT.

9 years agoEnhance readability. From HAT.
franklahm [Wed, 23 Dec 2009 14:14:09 +0000 (14:14 +0000)]
Enhance readability. From HAT.

9 years agoea option
franklahm [Wed, 23 Dec 2009 12:41:53 +0000 (12:41 +0000)]
ea option

9 years agoSupport long usernames. From Alain Richard.
franklahm [Wed, 23 Dec 2009 11:09:25 +0000 (11:09 +0000)]
Support long usernames. From Alain Richard.

9 years agoUntabify and reindent
franklahm [Wed, 23 Dec 2009 10:18:48 +0000 (10:18 +0000)]
Untabify and reindent

9 years agoCheck if entries are present before using them
franklahm [Wed, 23 Dec 2009 07:21:08 +0000 (07:21 +0000)]
Check if entries are present before using them

9 years agoRemove bogus checks
franklahm [Tue, 22 Dec 2009 14:45:38 +0000 (14:45 +0000)]
Remove bogus checks

9 years agoAdd debug log messages
franklahm [Tue, 22 Dec 2009 13:37:27 +0000 (13:37 +0000)]
Add debug log messages

9 years agoAdd all EA opts to volinfo
franklahm [Tue, 22 Dec 2009 10:46:28 +0000 (10:46 +0000)]
Add all EA opts to volinfo

9 years agoCompletely ignore symlinks
franklahm [Tue, 22 Dec 2009 09:43:15 +0000 (09:43 +0000)]
Completely ignore symlinks

9 years agoChange logging
franklahm [Mon, 21 Dec 2009 17:00:17 +0000 (17:00 +0000)]
Change logging

9 years agoDistinguish between intra-share and extra-share symlinks
franklahm [Mon, 21 Dec 2009 14:41:00 +0000 (14:41 +0000)]
Distinguish between intra-share and extra-share symlinks

9 years agosymlink support
franklahm [Mon, 21 Dec 2009 09:35:55 +0000 (09:35 +0000)]
symlink support

9 years agologger: write to fd 1 directly instead of /dev/tty. The latter cant be redirected
franklahm [Mon, 21 Dec 2009 07:49:44 +0000 (07:49 +0000)]
logger: write to fd 1 directly instead of /dev/tty. The latter cant be redirected

9 years agoooops! Previous commit requested 64 GB cache instead of 64 MB...
franklahm [Mon, 21 Dec 2009 07:32:01 +0000 (07:32 +0000)]
ooops! Previous commit requested 64 GB cache instead of 64 MB...

9 years agoSet cachesize for rebuild db
franklahm [Mon, 21 Dec 2009 06:41:09 +0000 (06:41 +0000)]
Set cachesize for rebuild db