]> arthur.barton.de Git - netatalk.git/log
netatalk.git
10 years agoActive Directory LDAP queries for ACL support
Ralph Boehme [Tue, 10 Sep 2013 16:17:34 +0000 (18:17 +0200)]
Active Directory LDAP queries for ACL support

AD stores users and groups under the same subtree which broke our naive
search strategy. Add LDAP options "ldap user filter" and "ldap group filter".

Fixes Bug #526.

10 years agoAdd support for ZFS ACLs on FreeBSD with libsunacl
Frank Lahm [Thu, 4 Apr 2013 00:39:42 +0000 (02:39 +0200)]
Add support for ZFS ACLs on FreeBSD with libsunacl

From FR#83.

10 years agoFix error handling when trying to set ACL on not existing rfork
Frank Lahm [Thu, 12 Sep 2013 13:15:41 +0000 (15:15 +0200)]
Fix error handling when trying to set ACL on not existing rfork

10 years agoDon't force S_ISGID for directories on FreeBSD, bug #525
Frank Lahm [Mon, 9 Sep 2013 11:52:32 +0000 (13:52 +0200)]
Don't force S_ISGID for directories on FreeBSD, bug #525

10 years agoDSI_SERVQUANT_DEF is 1048576 now
HAT [Fri, 6 Sep 2013 16:54:31 +0000 (01:54 +0900)]
DSI_SERVQUANT_DEF is 1048576 now

10 years agoAdd indication to help string that --with-ldap takes an optional path
Ralph Boehme [Wed, 4 Sep 2013 08:48:17 +0000 (10:48 +0200)]
Add indication to help string that --with-ldap takes an optional path

10 years agotwisted u_name and m_name
HAT [Thu, 29 Aug 2013 11:40:27 +0000 (20:40 +0900)]
twisted u_name and m_name

Fix Bug#523.

Additional Info:
The following line in ofork.c may also be wrong.

    /* Somone has used write_fork, we assume file was changed, register it to file change event api */
    if (ofork->of_flags & AFPFORK_MODIFIED) {
        struct dir *dir =  dirlookup(ofork->of_vol, ofork->of_did);
        bstring forkpath = bformat("%s/%s", bdata(dir->d_fullpath), of_name(ofork));
        fce_register(FCE_FILE_MODIFY, bdata(forkpath), NULL, fce_file);
        bdestroy(forkpath);
    }

10 years agoBump version
Ralph Boehme [Wed, 14 Aug 2013 09:52:53 +0000 (11:52 +0200)]
Bump version

10 years agoPrepare 3.0.5 release
Ralph Boehme [Wed, 14 Aug 2013 09:47:34 +0000 (11:47 +0200)]
Prepare 3.0.5 release

10 years agoRemove obsolete variable
Ralph Boehme [Tue, 13 Aug 2013 17:09:08 +0000 (19:09 +0200)]
Remove obsolete variable

10 years agoFPExchangeFiles must only switch data file, not metadata
Ralph Boehme [Tue, 13 Aug 2013 14:19:25 +0000 (16:19 +0200)]
FPExchangeFiles must only switch data file, not metadata

In Netatalk 3, afp_exchangefiles() moves the metadata EAs togehter with
the files, so we must copy the metadata EAs back at then end.

Fixes bug #521.

10 years agosystemd unit dir is /usr/lib/systemd/system now
HAT [Tue, 13 Aug 2013 08:13:39 +0000 (17:13 +0900)]
systemd unit dir is /usr/lib/systemd/system now

10 years agoNew boolean volume option "delete veto files"
Ralph Boehme [Wed, 24 Jul 2013 20:31:19 +0000 (22:31 +0200)]
New boolean volume option "delete veto files"

If this option is set to yes, then Netatalk will attempt to
recursively delete any vetoed files and directories.

Remove obselete code that tries to delete dangling symlinks, this
is not necessary anymore since Netatalk support UNIX symlinks.

Modify behaviour of the VFS function deletecurdir of the "ea" VFS
module so it deletes all files beginning with "._".

From feature request #82.

10 years agoSend optional AFP messages for vetoed files
Ralph Boehme [Thu, 25 Jul 2013 16:31:11 +0000 (18:31 +0200)]
Send optional AFP messages for vetoed files

New option "veto messages" can be used to enable sending messages.
Then whenever a client tries to access any file or directory
with a vetoed name, it will be sent an AFP message indicating
the name and the directory.

Feature request #81.

10 years agoMerge remote-tracking branch 'github/branch-netatalk-3-0' into branch-netatalk-3-0
Ralph Boehme [Mon, 29 Jul 2013 17:14:41 +0000 (19:14 +0200)]
Merge remote-tracking branch 'github/branch-netatalk-3-0' into branch-netatalk-3-0

10 years agoMerge pull request #2 from hat001/doc-fix
slowfranklin [Mon, 29 Jul 2013 16:18:58 +0000 (09:18 -0700)]
Merge pull request #2 from hat001/doc-fix

update doc

10 years agoupdate doc
HAT [Mon, 29 Jul 2013 13:55:46 +0000 (22:55 +0900)]
update doc
map acls and follow symlinks

10 years agoBump libatalk version info
Ralph Boehme [Wed, 24 Jul 2013 08:57:05 +0000 (10:57 +0200)]
Bump libatalk version info

10 years agoUse reentrant getpwuid_r() to avoid possibe crash in set_groups()
Ralph Boehme [Tue, 23 Jul 2013 09:26:18 +0000 (11:26 +0200)]
Use reentrant getpwuid_r() to avoid possibe crash in set_groups()

Fixes bug #518.

10 years agoFix parsing of address[:port] strings for IPv6 addresses, bug #515
Ralph Boehme [Tue, 16 Jul 2013 15:02:46 +0000 (17:02 +0200)]
Fix parsing of address[:port] strings for IPv6 addresses, bug #515

10 years agoNew global/volume option "ignored attributes"
Ralph Boehme [Wed, 26 Jun 2013 13:20:41 +0000 (15:20 +0200)]
New global/volume option "ignored attributes"

Can be used to ignore Finder locks by setting "ignored attributes = all".
From FR#80.

10 years agoZFS doc fixes
Ralph Boehme [Tue, 9 Jul 2013 13:37:51 +0000 (15:37 +0200)]
ZFS doc fixes

10 years agoUpdate news
Ralph Boehme [Mon, 8 Jul 2013 09:15:44 +0000 (11:15 +0200)]
Update news

10 years agoRename all iniparser API function
Ralph Boehme [Sun, 23 Jun 2013 17:37:00 +0000 (19:37 +0200)]
Rename all iniparser API function

Linking with PAM and using pam_windind from Samba will otherwise
result in the pam_winbind calling our iniparser functions instead
of their own copies. As both implementation differ this leads to
crashes in the worst case.

10 years agoLog message was using wrong variable
Ralph Boehme [Fri, 21 Jun 2013 09:46:59 +0000 (11:46 +0200)]
Log message was using wrong variable

10 years agoFix timestamps on hosts that use a 64 bit time_t
Ralph Boehme [Mon, 17 Jun 2013 12:09:31 +0000 (14:09 +0200)]
Fix timestamps on hosts that use a 64 bit time_t

From Don Lee

10 years agoFix log message
Ralph Boehme [Mon, 17 Jun 2013 12:07:05 +0000 (14:07 +0200)]
Fix log message

10 years agoPut our includes in CPPFLAGS instead of CFLAGS and remove Solaris kmodule
Ralph Boehme [Tue, 4 Jun 2013 10:33:49 +0000 (12:33 +0200)]
Put our includes in CPPFLAGS instead of CFLAGS and remove Solaris kmodule

Adding includes to CPPFLAGS ensures headers are picked up from the source
tree instead of an include path added by xxx_CFLAGS.

10 years agoSmall fix, add missing quote, from Don Lee
Ralph Boehme [Tue, 28 May 2013 10:42:23 +0000 (12:42 +0200)]
Small fix, add missing quote, from Don Lee

10 years agoFix unnamed union inside struct
Ralph Boehme [Mon, 27 May 2013 13:55:33 +0000 (15:55 +0200)]
Fix unnamed union inside struct

10 years agoMerge branch 'branch-netatalk-3-0' of netafp.com:git/netatalk into branch-netatalk-3-0
Ralph Boehme [Mon, 27 May 2013 12:44:24 +0000 (14:44 +0200)]
Merge branch 'branch-netatalk-3-0' of netafp.com:git/netatalk into branch-netatalk-3-0

10 years agoAdd missing -R in BerkeleyDB macro
Ralph Boehme [Mon, 27 May 2013 12:43:49 +0000 (14:43 +0200)]
Add missing -R in BerkeleyDB macro

10 years agoStart working on 3.0.5
Ralph Boehme [Wed, 22 May 2013 11:36:16 +0000 (13:36 +0200)]
Start working on 3.0.5

10 years agoFix suffix rule
Ralph Boehme [Fri, 24 May 2013 15:29:53 +0000 (17:29 +0200)]
Fix suffix rule

10 years agoAdjust for moved netatalk.html file
Ralph Boehme [Fri, 24 May 2013 15:11:56 +0000 (17:11 +0200)]
Adjust for moved netatalk.html file

10 years agoAdd html manual generation
Ralph Boehme [Fri, 24 May 2013 15:04:36 +0000 (17:04 +0200)]
Add html manual generation

10 years ago3.0.4 release notes
Ralph Boehme [Fri, 24 May 2013 13:54:45 +0000 (15:54 +0200)]
3.0.4 release notes

10 years agoBump version
Ralph Boehme [Fri, 24 May 2013 13:50:18 +0000 (15:50 +0200)]
Bump version

10 years agoPrepare 3.0.4 release
Ralph Boehme [Fri, 24 May 2013 13:13:22 +0000 (15:13 +0200)]
Prepare 3.0.4 release

10 years agoFix bashism
Ralph Boehme [Tue, 14 May 2013 12:30:39 +0000 (14:30 +0200)]
Fix bashism

10 years agoNew option "afp interfaces"
Ralph Boehme [Sat, 11 May 2013 17:17:38 +0000 (19:17 +0200)]
New option "afp interfaces"

Allows specifying where Netatalk listens for AFP connections
by interface name, from FR #79.

10 years agoAdd documentation to DEVELOPER and add a summary line
Ralph Boehme [Tue, 14 May 2013 08:46:57 +0000 (10:46 +0200)]
Add documentation to DEVELOPER and add a summary line

10 years agoAdd XML files to distribution
Ralph Boehme [Tue, 14 May 2013 08:33:40 +0000 (10:33 +0200)]
Add XML files to distribution

10 years agoAdd checking for Docbook
Ralph Boehme [Tue, 14 May 2013 05:04:18 +0000 (07:04 +0200)]
Add checking for Docbook

10 years agoChange clean target
Ralph Boehme [Tue, 14 May 2013 04:55:20 +0000 (06:55 +0200)]
Change clean target

10 years agoFinish renaming
Ralph Boehme [Tue, 14 May 2013 04:52:03 +0000 (06:52 +0200)]
Finish renaming

10 years agoTry to move substitution to configure stage
Ralph Boehme [Mon, 13 May 2013 16:44:33 +0000 (18:44 +0200)]
Try to move substitution to configure stage

10 years agoAdd Docbook documentation to tree
Ralph Boehme [Mon, 13 May 2013 08:04:44 +0000 (10:04 +0200)]
Add Docbook documentation to tree

10 years agoChange default FinderInfo for directories to be all 0
Ralph Boehme [Fri, 10 May 2013 09:01:04 +0000 (11:01 +0200)]
Change default FinderInfo for directories to be all 0

Fixes bug #514:
Unable to delete EA com.apple.FinderInfo on folders.

10 years agoFix another missplelled compiler variable
Ralph Boehme [Thu, 2 May 2013 08:26:53 +0000 (10:26 +0200)]
Fix another missplelled compiler variable

10 years agoFix LDFLAGS variable mispelling
Ralph Boehme [Thu, 2 May 2013 08:14:15 +0000 (10:14 +0200)]
Fix LDFLAGS variable mispelling

11 years agoRevert "Remove size check that required a costly fstat()"
Ralph Boehme [Tue, 23 Apr 2013 13:57:48 +0000 (15:57 +0200)]
Revert "Remove size check that required a costly fstat()"

This reverts commit 2d4c0bd1e9b0ad0db32e4f3705fe67f657f57230.

11 years agoAdd missing include, fixes bug #512
Ralph Boehme [Tue, 23 Apr 2013 10:57:38 +0000 (12:57 +0200)]
Add missing include, fixes bug #512

11 years agoRemove size check that required a costly fstat()
Ralph Boehme [Thu, 18 Apr 2013 08:58:44 +0000 (10:58 +0200)]
Remove size check that required a costly fstat()

In case the client request count plus offset is large then the file,
we're supposed to send the available data and set AFP error to
AFPERR_EOF.
No need to use an extra fstat() for that, we can also simply check
the whether the amount of data read from the file matches the
requested amount.

From FR #78.

11 years agoDon't timeout when waiting for client requests
Ralph Boehme [Thu, 18 Apr 2013 08:55:45 +0000 (10:55 +0200)]
Don't timeout when waiting for client requests

From FR #78

11 years agoAdd non timeout semantics which avoid extra calls to gettimeofday()
Ralph Boehme [Thu, 18 Apr 2013 08:53:13 +0000 (10:53 +0200)]
Add non timeout semantics which avoid extra calls to gettimeofday()

From FR #78.

11 years agoDon't check for pending event if no FCE listeners are configured
Ralph Boehme [Thu, 18 Apr 2013 08:51:59 +0000 (10:51 +0200)]
Don't check for pending event if no FCE listeners are configured

Eliminates one time() syscall for every AFP transaction.
From FR #78.

11 years agoUse ostat in the dircache
Ralph Boehme [Tue, 26 Mar 2013 05:58:44 +0000 (06:58 +0100)]
Use ostat in the dircache

Fixes a possible crash in cname() where cname_mtouname calls
dirlookup() where the curdir is freed because the dircache
detected a dev/inode cache difference and evicted the object
from the cache.

Fixes bug #498.

11 years agoEnhance ACL mapping
Frank Lahm [Thu, 28 Feb 2013 07:02:48 +0000 (08:02 +0100)]
Enhance ACL mapping

Change globald ACL option 'map acl' to take the following options:
"none", "rights", "mode". The default is "rights".

none   = no mapping, this resembles the previous false/no setting
rights = map ACLs to Finder UARights, this resembles the previous
         true/yes setting. This is the default.
mode   = map ACLs to Finder UARights and UNIX mode

From FR #73.

11 years agoad_name is UTF8-MAC
HAT [Sun, 7 Apr 2013 14:16:45 +0000 (23:16 +0900)]
ad_name is UTF8-MAC

11 years agoFix an issue with filenames containing non-ASCII characters
Frank Lahm [Sat, 6 Apr 2013 15:08:37 +0000 (17:08 +0200)]
Fix an issue with filenames containing non-ASCII characters

Fix an issue with filenames containing non-ASCII characters that
lead to a failure setting the size of a files ressource fork.
This affected application like Adobe Photoshop where saving
files may fail. Fixes bug #511.

11 years agoOpening files without metadata EA may result in broken metadata EA
Ralph Boehme [Wed, 27 Mar 2013 16:18:22 +0000 (17:18 +0100)]
Opening files without metadata EA may result in broken metadata EA

ad_open_hf_ea() calls ad_flush() after initializing the new metadata,
but in ad_flush() ad_flush_ea() wasn't called because we didn't
yet increment the refcount.
Fix this by increasing the refcount in ad_open_hf() before calling
into ad_open_hf_ea(), decrementing it again in case of an error.

This ensure a valid metadata EA is created, but it still doesn't
set the CNID field values. Therefor in afp_openfork() we must check
whether the ad_open() created a metadata EA and then set the CNID
info.

Finally, check for malformed metadata EAs and delete them.

Fixes bug #510.

11 years agoChange log facility
Ralph Boehme [Wed, 27 Mar 2013 14:38:19 +0000 (15:38 +0100)]
Change log facility

11 years agoAdd 3.0.4 news
Ralph Boehme [Tue, 26 Mar 2013 17:46:24 +0000 (18:46 +0100)]
Add 3.0.4 news

11 years ago3.0.4dev
Frank Lahm [Tue, 26 Mar 2013 09:43:00 +0000 (10:43 +0100)]
3.0.4dev

11 years agoPrepare 3.0.3 release
Frank Lahm [Tue, 26 Mar 2013 09:17:03 +0000 (10:17 +0100)]
Prepare 3.0.3 release

11 years agoFix "ad ls" segfault if requested object is not in an AFP volume
Ralph Boehme [Fri, 22 Mar 2013 12:53:10 +0000 (13:53 +0100)]
Fix "ad ls" segfault if requested object is not in an AFP volume

Fixes bug #496.

11 years agoAdd afpstats manpage and update afp.conf
Ralph Boehme [Sun, 24 Mar 2013 08:35:19 +0000 (09:35 +0100)]
Add afpstats manpage and update afp.conf

11 years agonew configure option --with-init-dir=PATH
HAT [Fri, 22 Mar 2013 15:12:15 +0000 (00:12 +0900)]
new configure option --with-init-dir=PATH

11 years agoOnly configure libevent when used
Ralph Boehme [Fri, 22 Mar 2013 13:37:06 +0000 (14:37 +0100)]
Only configure libevent when used

11 years agoSetting POSIX ACLs on Linux
Frank Lahm [Thu, 14 Mar 2013 18:54:52 +0000 (19:54 +0100)]
Setting POSIX ACLs on Linux

The VFS module for setting ACLs on Linux returned an error when
try to set an ACL for a file that doesn't have a ressource fork.

Fix this by checking for ENOENT errno and then returning with 0
from the VFS stack.

11 years agoFix a debug message
Ralph Boehme [Fri, 22 Mar 2013 12:11:48 +0000 (13:11 +0100)]
Fix a debug message

11 years agoCan't set Finder label on symlinked folder with "follow symlinks = yes"
Ralph Boehme [Thu, 21 Mar 2013 16:21:59 +0000 (17:21 +0100)]
Can't set Finder label on symlinked folder with "follow symlinks = yes"

Fixes bug #508.

11 years agoIncrease IO size when sendfile() is not used
Ralph Boehme [Tue, 19 Mar 2013 14:26:03 +0000 (15:26 +0100)]
Increase IO size when sendfile() is not used

If sendfile() support is disabled, the current code results in an
IO size of 8k for transferring requested data to the client. Eg:
- client request to read DSI quantum size bytes (~250k) from a file
- afpd process loops read(8k, file) -> send(8k, client) until all
  250k have been transferred
This should be modified to read the whole 250k in one swoop from the
file to a buffer and then send the whole buffer in one swoop to the
client.

From FR #76.

11 years agoFix ressource fork refcounting
Ralph Boehme [Tue, 19 Mar 2013 12:15:10 +0000 (13:15 +0100)]
Fix ressource fork refcounting

11 years agoread_file() clobbered the AFP error code
Ralph Boehme [Tue, 19 Mar 2013 11:18:34 +0000 (12:18 +0100)]
read_file() clobbered the AFP error code

11 years agoUse FreeBSD sendfile() capability to send protocol header
Frank Lahm [Fri, 15 Mar 2013 08:19:40 +0000 (09:19 +0100)]
Use FreeBSD sendfile() capability to send protocol header

When transmitting file contents to a client with sendfile(), on
every platform other then Solaris (where we use sendfilev()), we
send the AFP the protocol header with an additional send with
MSG_MORE before calling sendfile().
FreeBSD sendfile() supports sending protocol header (and trailer)
data similarly to Solaris sendfilev().

11 years agoMerge remote branch 'github/develop' into develop
Frank Lahm [Fri, 15 Mar 2013 12:41:39 +0000 (13:41 +0100)]
Merge remote branch 'github/develop' into develop

11 years agoMerge pull request #25 from hat001/of_findname
franklahm [Fri, 15 Mar 2013 12:40:45 +0000 (05:40 -0700)]
Merge pull request #25 from hat001/of_findname

of_findname(): missing argument

11 years agoof_findname(): missing argument
HAT [Fri, 15 Mar 2013 11:32:21 +0000 (20:32 +0900)]
of_findname(): missing argument

11 years agoafpstats-service.xml afpstats_service_glue.h were missing in distribution
Frank Lahm [Mon, 11 Mar 2013 17:42:23 +0000 (18:42 +0100)]
afpstats-service.xml afpstats_service_glue.h were missing in distribution

11 years agoPermissions of ._ AppleDouble rfork after conversion from v2 to ea.
Frank Lahm [Mon, 11 Mar 2013 16:19:28 +0000 (17:19 +0100)]
Permissions of ._ AppleDouble rfork after conversion from v2 to ea.

Fixes bug #505.

11 years agosys_lsetxattr error messages when mounting read only filesystem
Ralph Boehme [Tue, 5 Mar 2013 16:40:22 +0000 (17:40 +0100)]
sys_lsetxattr error messages when mounting read only filesystem

Fixes bug #504.

11 years agoafpd -V show dbus and dtrace
HAT [Sun, 10 Mar 2013 15:23:30 +0000 (00:23 +0900)]
afpd -V show dbus and dtrace

11 years agoConversion from adouble v2 to ea for directories
Frank Lahm [Sat, 9 Mar 2013 13:23:33 +0000 (14:23 +0100)]
Conversion from adouble v2 to ea for directories

Fixes bug #500.

11 years agoSolaris fixes for bugs #501 and #502
Ralph Boehme [Sat, 9 Mar 2013 12:50:37 +0000 (13:50 +0100)]
Solaris fixes for bugs #501 and #502

11 years agoFile's ressource fork can't be read if metadata EA is missing
Frank Lahm [Fri, 8 Mar 2013 17:29:13 +0000 (18:29 +0100)]
File's ressource fork can't be read if metadata EA is missing

Fixes bug #501.

11 years agoFix an issue caused by read-only ._ ressource forks
Frank Lahm [Thu, 7 Mar 2013 18:03:30 +0000 (19:03 +0100)]
Fix an issue caused by read-only ._ ressource forks

Fixes bug #502.

11 years agoAdd IPC commands to string array
Frank Lahm [Wed, 6 Mar 2013 18:10:06 +0000 (19:10 +0100)]
Add IPC commands to string array

11 years agoCheck for dbus_g_bus_get_private(), older dbus-glib versions seem to miss it
Frank Lahm [Wed, 6 Mar 2013 17:35:15 +0000 (18:35 +0100)]
Check for dbus_g_bus_get_private(), older dbus-glib versions seem to miss it

11 years agoPossible fixes to afpstats dbus issue
Ralph Boehme [Tue, 5 Mar 2013 08:32:28 +0000 (09:32 +0100)]
Possible fixes to afpstats dbus issue

Initialize afpstats before calling configinit in main() thus ensuring
dbus glib thread initilisation is performed as we need it.

Use private dbus connection from dbus_g_bus_get_private() which should
help with issues seen where our avahi dbus thread crashed.

11 years agoNew option 'afpstats'
Ralph Boehme [Mon, 4 Mar 2013 16:45:19 +0000 (17:45 +0100)]
New option 'afpstats'

11 years agoChange pkg-config check for dbus-glib
Ralph Boehme [Wed, 27 Feb 2013 07:57:55 +0000 (08:57 +0100)]
Change pkg-config check for dbus-glib

11 years agoFix distcheck error caused by pkgconfig stuff
Ralph Boehme [Mon, 25 Feb 2013 17:07:01 +0000 (18:07 +0100)]
Fix distcheck error caused by pkgconfig stuff

11 years agoAdd PATH to helpstring
Ralph Boehme [Mon, 25 Feb 2013 11:12:48 +0000 (12:12 +0100)]
Add PATH to helpstring

11 years agoRemove unneeded include
Ralph Boehme [Sun, 24 Feb 2013 09:15:05 +0000 (10:15 +0100)]
Remove unneeded include

11 years agoconfigure summary show paths
HAT [Fri, 22 Feb 2013 14:30:10 +0000 (23:30 +0900)]
configure summary show paths

11 years agoRemove duplicated test
Ralph Boehme [Fri, 22 Feb 2013 11:56:43 +0000 (12:56 +0100)]
Remove duplicated test

11 years agoAdd a distinct variable for storing result of checks
Frank Lahm [Fri, 22 Feb 2013 09:53:55 +0000 (10:53 +0100)]
Add a distinct variable for storing result of checks

11 years agoReload groups when reloading volumes
Ralph Boehme [Thu, 21 Feb 2013 14:19:02 +0000 (15:19 +0100)]
Reload groups when reloading volumes

Reload the user groups every time the volume configuration changes
and also to call initgroups() again with the possibly changed groups.

FR #71