]> arthur.barton.de Git - netatalk.git/log
netatalk.git
11 years agoMerge pull request #4 from hat001/develop
franklahm [Thu, 18 Oct 2012 16:39:03 +0000 (09:39 -0700)]
Merge pull request #4 from hat001/develop

afpd -v: show path of extmap.conf

11 years agoafpd -v: show path of extmap.conf
HAT [Thu, 18 Oct 2012 15:24:26 +0000 (00:24 +0900)]
afpd -v: show path of extmap.conf

11 years agoRemove gettok.c from test afpd
Frank Lahm [Thu, 18 Oct 2012 10:38:25 +0000 (12:38 +0200)]
Remove gettok.c from test afpd

11 years agoDefault extension mapping filename ought to be extmap.conf
Frank Lahm [Wed, 17 Oct 2012 08:15:28 +0000 (10:15 +0200)]
Default extension mapping filename ought to be extmap.conf

Also changed: an error reading the extension mappings shouldn't be
treates as a fatal error.

11 years agoMerge pull request #3 from hat001/develop
franklahm [Tue, 16 Oct 2012 14:32:56 +0000 (07:32 -0700)]
Merge pull request #3 from hat001/develop

Develop

11 years agoMerge branch 'develop' of git://github.com/franklahm/Netatalk into develop
HAT [Tue, 16 Oct 2012 13:56:33 +0000 (22:56 +0900)]
Merge branch 'develop' of git://github.com/franklahm/Netatalk into develop

11 years agoapple_dump: use open2(), from Oichinokata
HAT [Tue, 16 Oct 2012 13:55:39 +0000 (22:55 +0900)]
apple_dump: use open2(), from Oichinokata

11 years agoReintroduce file extension type/creator mapping
Frank Lahm [Sun, 14 Oct 2012 12:53:51 +0000 (14:53 +0200)]
Reintroduce file extension type/creator mapping

11 years agoMove (unused) file gettok.c to libatalk
Frank Lahm [Sun, 14 Oct 2012 10:05:12 +0000 (12:05 +0200)]
Move (unused) file gettok.c to libatalk

11 years agoFix: add a '/' between basedir and subdir in the path for home volumes
Frank Lahm [Thu, 11 Oct 2012 14:42:03 +0000 (16:42 +0200)]
Fix: add a '/' between basedir and subdir in the path for home volumes

11 years agoFix a bug where Mac OS X ZIP archives can't be extracted on Netatalk shares
Frank Lahm [Tue, 9 Oct 2012 16:23:57 +0000 (18:23 +0200)]
Fix a bug where Mac OS X ZIP archives can't be extracted on Netatalk shares

Mac OS X ZIP archives may contain split AppleDouble forks named "._XXX".
The client needs to be able to fully access these files but we currently
prevent access to any valid AppleDouble file whose name starts with "._".
In order to distinguish our own ._ files from the one created by OS X,
we look at the filler bytes: luckily OS X stores a string "Mac OS X" there
which can be used to detect them.

11 years agoFix check for nested and duplicated volume paths
Frank Lahm [Thu, 11 Oct 2012 11:02:55 +0000 (13:02 +0200)]
Fix check for nested and duplicated volume paths

The previous modification was based on ensuring the volume paths are
'/' terminated. That allowed for a simple and quick implementation of
the neccessary tests. Unfortunately that completely broke the whole
directory machinery and cache.
This patch reverts the previous change and tries another simple
implementation that avoid copying the paths.

11 years agoFix memory leak and use EC_FAIL instead of returning directly
Frank Lahm [Wed, 10 Oct 2012 14:40:30 +0000 (16:40 +0200)]
Fix memory leak and use EC_FAIL instead of returning directly

11 years agoFix memory leak and use descriptive variable names
Frank Lahm [Wed, 10 Oct 2012 14:30:06 +0000 (16:30 +0200)]
Fix memory leak and use descriptive variable names

11 years agoEnsure the volume path is '/' terminated and allow nested volumes
Frank Lahm [Wed, 10 Oct 2012 13:34:34 +0000 (15:34 +0200)]
Ensure the volume path is '/' terminated and allow nested volumes

The previos change to the way checking for duplicate and nested paths only
works if the path is terminated with a '/'.
Allow nested volumes. This was working in 2.2 and can be used eg for sharing
a ZFS snapshot directory of a volume. Afaict it only works with sane AFP
semantics by adding 'cnid sheme = tdb' to the nested volume which also
makes it read-only and by adding the name of the nested directory to
the veto name list.

11 years agoBump ABI
Frank Lahm [Wed, 10 Oct 2012 12:54:16 +0000 (14:54 +0200)]
Bump ABI

11 years agoAdd ABI file
Frank Lahm [Wed, 10 Oct 2012 12:52:25 +0000 (14:52 +0200)]
Add ABI file

11 years agoAvoid excessive path copying when checking for duplicate or nested paths
Frank Lahm [Wed, 10 Oct 2012 12:42:38 +0000 (14:42 +0200)]
Avoid excessive path copying when checking for duplicate or nested paths

11 years agoMove realpath_safe() to libatalk/util/unix.c and make it a global function
Frank Lahm [Wed, 10 Oct 2012 12:13:31 +0000 (14:13 +0200)]
Move realpath_safe() to libatalk/util/unix.c and make it a global function

11 years agoRemove unneccessary call to getcwd()
Frank Lahm [Wed, 10 Oct 2012 11:51:34 +0000 (13:51 +0200)]
Remove unneccessary call to getcwd()

getcwd() was called after a chdir(vol->v_path) in order to copy
the path to vol->v_path. But as v_path is now already set in netatalk_conf.c
when parsing the volumes config, this is not neccessary anymore.

11 years agoignore duplicated or nested volume path
HAT [Thu, 4 Oct 2012 13:32:13 +0000 (22:32 +0900)]
ignore duplicated or nested volume path

11 years agoremove realpath() in afp_openvol()
HAT [Thu, 4 Oct 2012 13:30:33 +0000 (22:30 +0900)]
remove realpath() in afp_openvol()
because it has already been done, when parsing afp.conf

11 years agofix: basedir regex symlink problem
HAT [Wed, 3 Oct 2012 14:23:55 +0000 (23:23 +0900)]
fix: basedir regex symlink problem

11 years agonew function realpath_safe()
HAT [Wed, 3 Oct 2012 11:08:45 +0000 (20:08 +0900)]
new function realpath_safe()

11 years agodo realpath() immediately after parsing "path" parameter
HAT [Tue, 2 Oct 2012 17:05:54 +0000 (02:05 +0900)]
do realpath() immediately after parsing "path" parameter
in order to cope with symlink

11 years agoReset version to 3.0.1 after merge
Frank Lahm [Fri, 28 Sep 2012 09:29:36 +0000 (11:29 +0200)]
Reset version to 3.0.1 after merge

11 years agoMerge branch 'develop'
Frank Lahm [Fri, 28 Sep 2012 09:25:57 +0000 (11:25 +0200)]
Merge branch 'develop'

11 years agoMerge remote branch 'sf/develop' into develop
Frank Lahm [Fri, 28 Sep 2012 09:24:07 +0000 (11:24 +0200)]
Merge remote branch 'sf/develop' into develop

11 years ago3.0.1dev
Frank Lahm [Fri, 28 Sep 2012 09:20:18 +0000 (11:20 +0200)]
3.0.1dev

11 years agoMerge branch 'release-3-0-1'
Frank Lahm [Fri, 28 Sep 2012 09:16:56 +0000 (11:16 +0200)]
Merge branch 'release-3-0-1'

11 years ago3.0.1 version and ABI
Frank Lahm [Fri, 28 Sep 2012 09:11:02 +0000 (11:11 +0200)]
3.0.1 version and ABI

11 years agoapple_dump: small fix
HAT [Wed, 26 Sep 2012 13:48:48 +0000 (22:48 +0900)]
apple_dump: small fix

11 years agogentoo initscript from portage netatalk.init,v 1.1 2012/09/10 14:28:03 jlec
HAT [Wed, 19 Sep 2012 13:05:56 +0000 (22:05 +0900)]
gentoo initscript from portage netatalk.init,v 1.1 2012/09/10 14:28:03 jlec
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-fs/netatalk/files/netatalk.init?revision=1.1

11 years agoImport from XML
Frank Lahm [Fri, 14 Sep 2012 15:02:25 +0000 (17:02 +0200)]
Import from XML

11 years agoImport from XML
Frank Lahm [Fri, 14 Sep 2012 12:55:48 +0000 (14:55 +0200)]
Import from XML

11 years agoReplace relevant direct seteuid() calls with calls to (un)become_root()
Frank Lahm [Fri, 31 Aug 2012 09:36:08 +0000 (11:36 +0200)]
Replace relevant direct seteuid() calls with calls to (un)become_root()

11 years agolibevent configure args to pick up installed version
Frank Lahm [Mon, 27 Aug 2012 08:27:50 +0000 (10:27 +0200)]
libevent configure args to pick up installed version

Remove configure argument --disable-libevent.
Add configure args --with-libevent-header|lib.

11 years agoRemove inet_aton from compatibility library
Frank Lahm [Mon, 27 Aug 2012 07:42:42 +0000 (09:42 +0200)]
Remove inet_aton from compatibility library

Fixes bug 3531813

inet_aton isn't used at all in the codebase

11 years agoapple_dump: small fix
HAT [Fri, 24 Aug 2012 16:42:09 +0000 (01:42 +0900)]
apple_dump: small fix

11 years agosmall fix of configure summary
HAT [Thu, 23 Aug 2012 14:24:05 +0000 (23:24 +0900)]
small fix of configure summary
Samba sharemode interop is hidden
init style was not easy to notice

11 years agoFix data corruption bug
Frank Lahm [Thu, 23 Aug 2012 10:20:00 +0000 (12:20 +0200)]
Fix data corruption bug

Received data from the client was written to the read-ahead buffer
from dsi_peek() which caused data corrution.
Fix is: change the DSI command buffer from static 8192 bytes to
an allocated buffer of size DSI quantum and use this buffer in
dsi_write/write_fork. That just requires dsi_writeinit to use
memmove instead of memcpy, because now we use the same buffer.

11 years agoUpdate NEWS
Frank Lahm [Thu, 23 Aug 2012 08:18:55 +0000 (10:18 +0200)]
Update NEWS

11 years agoRestructure fork opening, fix adouble refcounting
Frank Lahm [Thu, 23 Aug 2012 08:06:04 +0000 (10:06 +0200)]
Restructure fork opening, fix adouble refcounting

Fixes Bug ID 3559783

The bug is caused by passing ADFLAGS_NOHF to ad_open() when opening a
files data fork. For files without metadata then ad_open() doesn't
return an error for the ADFLAGS_HF request to open the metadata. As a
result of the successfull ad_open return AFPFORK_META is set in the
fork struct, which implies the meta is open. Later afp_close looked at
that flag and added ADFLAGS_HF to ad_close flags, resulting in a
refcount decement of 2 although the ad_open only incremented by 1. Eg
opening such a file twice, then closing once, close the fork. Later
operations on the other still open fork fail.

afp_openfork opens the fork and metadata in one call to ad_open which
lead to an insane if/else and error checking code path.  I've
seperated this in two distincs calls to ad_open(): the first opens the
fork (data or ressource), the second opens the metadata. This gives a
cleaner code path but it required a subtle modifications to the way we
refcount and flag forks as open inside ad_open: currently we use the
fd and it's recount but these do not differente between open data and
metadata in the case of adouble:ea as both use the data fork handle,
fd and it's refcount.  Now we add real refcounting for the forks
different from the recount on the file fd by adding three refcounting
variables to struct.adouble and change the AD_XXX_OPEN macros to use
these.

Added test-suite testcases 3, 4 and 7.

11 years agoFix merge errors
Frank Lahm [Sat, 18 Aug 2012 10:59:03 +0000 (12:59 +0200)]
Fix merge errors

11 years agoFix merge error
Frank Lahm [Sat, 18 Aug 2012 06:05:02 +0000 (08:05 +0200)]
Fix merge error

11 years agoMerge remote branch 'sf/product-2-2' into develop
Frank Lahm [Fri, 17 Aug 2012 12:21:52 +0000 (14:21 +0200)]
Merge remote branch 'sf/product-2-2' into develop

Conflicts:
etc/afpd/afp_dsi.c
libatalk/dsi/dsi_stream.c

11 years agoUpdate NEWS
Frank Lahm [Fri, 17 Aug 2012 11:45:18 +0000 (13:45 +0200)]
Update NEWS

11 years agodiscarded macro HAVE_DB4_DB_H
HAT [Mon, 13 Aug 2012 13:38:41 +0000 (22:38 +0900)]
discarded macro HAVE_DB4_DB_H

11 years agosendfile on Solaris may return EINTR with bytes written https://issues.apache.org...
Frank Lahm [Fri, 3 Aug 2012 06:01:07 +0000 (08:01 +0200)]
sendfile on Solaris may return EINTR with bytes written https://issues.apache.org/bugzilla/show_bug.cgi?id=44550 http://wesunsolve.net/bugid/id/6408517

11 years agohandling of '/' and ':' in volume name
HAT [Wed, 8 Aug 2012 14:44:10 +0000 (23:44 +0900)]
handling of '/' and ':' in volume name

11 years agoBDB is not optional
HAT [Thu, 2 Aug 2012 16:24:35 +0000 (01:24 +0900)]
BDB is not optional

11 years agovolume name must not contain ":"
HAT [Thu, 2 Aug 2012 16:04:31 +0000 (01:04 +0900)]
volume name must not contain ":"

11 years agoTwisted loglevel and logtype
HAT [Thu, 2 Aug 2012 16:00:14 +0000 (01:00 +0900)]
Twisted loglevel and logtype
and Untabfy

11 years agoFix regression introduced by 88436a544d0c87299a3417432b15e897f1ea15ec
Frank Lahm [Thu, 2 Aug 2012 15:43:02 +0000 (17:43 +0200)]
Fix regression introduced by 88436a544d0c87299a3417432b15e897f1ea15ec

11 years agoFix subdirectory ordering
Frank Lahm [Wed, 1 Aug 2012 14:01:38 +0000 (16:01 +0200)]
Fix subdirectory ordering

11 years agoRemove libevent from hardcoded SUBDIRS, it's added by configure as necessary
Frank Lahm [Sat, 28 Jul 2012 12:44:26 +0000 (14:44 +0200)]
Remove libevent from hardcoded SUBDIRS, it's added by configure as necessary

11 years agoReset signal handlers and alarm timer after successfull PAM authentication
Frank Lahm [Fri, 27 Jul 2012 10:01:35 +0000 (12:01 +0200)]
Reset signal handlers and alarm timer after successfull PAM authentication
Fixes a problem with AFP disconnects caused by pam_smbpass.so messing with
our handlers and timer.

11 years agoUpdate libatalk ABI file
Frank Lahm [Wed, 25 Jul 2012 12:09:16 +0000 (14:09 +0200)]
Update libatalk ABI file

11 years agoNew LDAP option ldap uuid encoding, from Thomas Johnson <NTmatter@gmail.com>
Frank Lahm [Wed, 25 Jul 2012 12:03:20 +0000 (14:03 +0200)]
New LDAP option ldap uuid encoding, from Thomas Johnson <NTmatter@gmail.com>

11 years agoLDAP: Support for Active Directory objectGUID
Thomas Johnson [Sun, 15 Jul 2012 15:55:20 +0000 (17:55 +0200)]
LDAP: Support for Active Directory objectGUID

Adds optional "ldap uuid encoding = string | ms-guid" parameter to afp.conf,
allowing for usage of the binary objectGUID fields from Active Directory.

If left unspecified, "string" is the default, which passes through the ASCII
UUID returned by most other LDAP stores. If set to ms-guid, the internal UUID
representation is converted to and from the binary format used in the
objectGUID attribute found on objects in Active Directory when interacting
with the server.

11 years agoMerge remote branch 'sf/develop' into develop
Frank Lahm [Wed, 25 Jul 2012 09:21:06 +0000 (11:21 +0200)]
Merge remote branch 'sf/develop' into develop

11 years agoConvert to more readable error checking
Frank Lahm [Wed, 25 Jul 2012 09:20:44 +0000 (11:20 +0200)]
Convert to more readable error checking

11 years agoasip-status.pl: improvement of visibility.
HAT [Tue, 24 Jul 2012 13:31:16 +0000 (22:31 +0900)]
asip-status.pl: improvement of visibility.
forgotten ExtSleep.
show unknouwn flags.

11 years agoChange loglevel and add a few debug log statements
Frank Lahm [Wed, 18 Jul 2012 09:25:01 +0000 (11:25 +0200)]
Change loglevel and add a few debug log statements

11 years agoMerge remote branch 'sf/develop' into develop
Frank Lahm [Wed, 18 Jul 2012 08:30:39 +0000 (10:30 +0200)]
Merge remote branch 'sf/develop' into develop

11 years agoapple_dump: Extended Attributes AppleDouble support for *BSD
HAT [Mon, 16 Jul 2012 13:32:54 +0000 (22:32 +0900)]
apple_dump: Extended Attributes AppleDouble support for *BSD

11 years agoUpdate news
Frank Lahm [Sat, 14 Jul 2012 14:45:31 +0000 (16:45 +0200)]
Update news

11 years agoRemove AC_NETATALK_SMB_SHAREMODES from configure, it's still an empty stub
Frank Lahm [Fri, 13 Jul 2012 13:28:12 +0000 (15:28 +0200)]
Remove AC_NETATALK_SMB_SHAREMODES from configure, it's still an empty stub

11 years agoBump lib version, some struct have changed
Frank Lahm [Fri, 13 Jul 2012 13:25:24 +0000 (15:25 +0200)]
Bump lib version, some struct have changed

11 years agoMake all struct fields visible, don't hide them behind compile time config.h conditionals
Frank Lahm [Fri, 13 Jul 2012 13:18:21 +0000 (15:18 +0200)]
Make all struct fields visible, don't hide them behind compile time config.h conditionals

11 years agoFix config.h header protection
Frank Lahm [Fri, 13 Jul 2012 13:08:48 +0000 (15:08 +0200)]
Fix config.h header protection

11 years agoMerge remote branch 'sf/master'
Frank Lahm [Mon, 9 Jul 2012 11:34:12 +0000 (13:34 +0200)]
Merge remote branch 'sf/master'

11 years agoMerge branch 'release-3.0'
Frank Lahm [Mon, 9 Jul 2012 11:30:39 +0000 (13:30 +0200)]
Merge branch 'release-3.0'

11 years agoDisable tests wich need a writable volume
Frank Lahm [Mon, 9 Jul 2012 09:38:25 +0000 (11:38 +0200)]
Disable tests wich need a writable volume

11 years agoAdd 3.0 ABI and Version info
Frank Lahm [Mon, 9 Jul 2012 09:11:43 +0000 (11:11 +0200)]
Add 3.0 ABI and Version info

11 years agoImport 3.0 libatalk ABI
Frank Lahm [Mon, 9 Jul 2012 09:08:52 +0000 (11:08 +0200)]
Import 3.0 libatalk ABI

11 years agoSet Version to 3.0
Frank Lahm [Mon, 9 Jul 2012 09:06:16 +0000 (11:06 +0200)]
Set Version to 3.0

11 years agoMinor corrections
Frank Lahm [Mon, 9 Jul 2012 09:03:03 +0000 (11:03 +0200)]
Minor corrections

11 years agoMerge remote branch 'sf/develop' into develop
Frank Lahm [Mon, 9 Jul 2012 05:22:58 +0000 (07:22 +0200)]
Merge remote branch 'sf/develop' into develop

11 years agoImport manpages from XML
Frank Lahm [Mon, 9 Jul 2012 05:21:53 +0000 (07:21 +0200)]
Import manpages from XML

11 years agothe return of the daemon
HAT [Wed, 4 Jul 2012 14:47:07 +0000 (23:47 +0900)]
the return of the daemon
icon should be unique

11 years agoapple_dump: standard input support
HAT [Mon, 2 Jul 2012 14:34:58 +0000 (23:34 +0900)]
apple_dump: standard input support

11 years agoFix CNID path for user homes
Frank Lahm [Mon, 2 Jul 2012 14:25:28 +0000 (16:25 +0200)]
Fix CNID path for user homes

11 years agoapple_dump: small fix
HAT [Sun, 1 Jul 2012 16:53:15 +0000 (01:53 +0900)]
apple_dump: small fix

11 years agofix init-style message of configure script
HAT [Sun, 24 Jun 2012 01:57:58 +0000 (10:57 +0900)]
fix init-style message of configure script

11 years agoSet PAM_RUSER, some PAM module may need it (looking at you pam_smbpass!)
Frank Lahm [Sat, 23 Jun 2012 13:10:41 +0000 (15:10 +0200)]
Set PAM_RUSER, some PAM module may need it (looking at you pam_smbpass!)

11 years agoMerge 2-2
Frank Lahm [Sat, 23 Jun 2012 11:57:28 +0000 (13:57 +0200)]
Merge 2-2

11 years agoUpdate NEWS
Frank Lahm [Sat, 23 Jun 2012 11:50:33 +0000 (13:50 +0200)]
Update NEWS

11 years agoFix signal blocking, pthread_sigmask was called before mask initialisation. Also...
Frank Lahm [Wed, 20 Jun 2012 13:33:26 +0000 (15:33 +0200)]
Fix signal blocking, pthread_sigmask was called before mask initialisation. Also block all sigs instead of only SIGTERM (think I saw SIGHUP somewhere).

11 years agoBlock SIGTERM when calling pam_close_session
Frank Lahm [Mon, 18 Jun 2012 14:26:28 +0000 (16:26 +0200)]
Block SIGTERM when calling pam_close_session

11 years agoMerge remote branch 'sf/develop' into develop
Frank Lahm [Thu, 14 Jun 2012 13:44:07 +0000 (15:44 +0200)]
Merge remote branch 'sf/develop' into develop

11 years agoMerge remote branch 'sf/develop'
Frank Lahm [Thu, 14 Jun 2012 13:41:41 +0000 (15:41 +0200)]
Merge remote branch 'sf/develop'

11 years agofix --enable-fhs
HAT [Mon, 11 Jun 2012 15:25:35 +0000 (00:25 +0900)]
fix --enable-fhs

11 years agosorry. revert...
HAT [Mon, 11 Jun 2012 15:21:26 +0000 (00:21 +0900)]
sorry. revert...

11 years agofix --enable-fhs
HAT [Mon, 11 Jun 2012 14:59:24 +0000 (23:59 +0900)]
fix --enable-fhs

11 years agoreindent
HAT [Thu, 7 Jun 2012 15:57:05 +0000 (00:57 +0900)]
reindent

11 years agoapple_dump: small fixes.
HAT [Thu, 7 Jun 2012 15:09:08 +0000 (00:09 +0900)]
apple_dump: small fixes.
-f and -d options did not work.
display 32bit-LE of CNID.

11 years agoremove global option "icon"
HAT [Wed, 6 Jun 2012 13:19:21 +0000 (22:19 +0900)]
remove global option "icon"

11 years agoread only mode if cnid scheme is last
HAT [Tue, 5 Jun 2012 15:21:18 +0000 (00:21 +0900)]
read only mode if cnid scheme is last

11 years agoapple_dump: must quote meta chars, suggested by Oichinokata
HAT [Mon, 4 Jun 2012 15:51:49 +0000 (00:51 +0900)]
apple_dump: must quote meta chars, suggested by Oichinokata