]> arthur.barton.de Git - netatalk.git/log
netatalk.git
11 years agoMerge remote-tracking branch 'origin/develop' into spotlight
Frank Lahm [Fri, 2 Nov 2012 03:01:45 +0000 (04:01 +0100)]
Merge remote-tracking branch 'origin/develop' into spotlight

11 years agoFix a possible crash when searching on large volumes
Ralph Boehme [Tue, 11 Dec 2012 12:42:12 +0000 (13:42 +0100)]
Fix a possible crash when searching on large volumes

catsearch() used dirlookup() to lookup directories, but then it didn't
use movecwd() to cd into them, only lchdir(). This resulted in curdir
not being updated.
Then, while processing entries of directory and adding them to the
dircache, in case the dircache hit its maximum size limit, dircache
eviction would take place.
The dircache eviction will remove a fixed size number of directories
from the cache, but for every entry to be freed it will ensure that
it's nor curdir.
Unfortunately as catsearch didn't update that, the directory that
catsearch was working on was freed, which of course resulted in access
of invalid ressouces and possible crashes.
The fix is to just use movecwd() instead of lchdir()ing directly.

11 years agoRemove dequoting of double quotes in the iniparser, conflicts with strtok_quote()
Ralph Boehme [Tue, 11 Dec 2012 14:58:17 +0000 (15:58 +0100)]
Remove dequoting of double quotes in the iniparser, conflicts with strtok_quote()

11 years agoFix make distcheck
Ralph Boehme [Fri, 7 Dec 2012 09:02:25 +0000 (10:02 +0100)]
Fix make distcheck

11 years agoAdd support for quoting in '[in]valid users' option
Ralph Boehme [Thu, 6 Dec 2012 12:06:14 +0000 (13:06 +0100)]
Add support for quoting in '[in]valid users' option

As the option should allow spaces in names, but we use comma and
space as field delimiter, add support for quoting names.
Fixes bug #472.

11 years agoFix volume loading in afpd session
Ralph Boehme [Thu, 6 Dec 2012 12:03:28 +0000 (13:03 +0100)]
Fix volume loading in afpd session

Due to the changes in 59ba70c884ca7356e28873fccab7d3611369e6cc
(SIGHUP support), volumes were not reloaded in the afpd session
child.

11 years agoAdd utility function strtok_quote()
Ralph Boehme [Thu, 6 Dec 2012 09:56:33 +0000 (10:56 +0100)]
Add utility function strtok_quote()

11 years agoAdd a missing conditional compilation ifdef
Ralph Boehme [Thu, 6 Dec 2012 09:42:47 +0000 (10:42 +0100)]
Add a missing conditional compilation ifdef

11 years agoRevert c7683d5aae3d154250df531a5d34e4a464b5ced2
Ralph Boehme [Thu, 6 Dec 2012 09:29:01 +0000 (10:29 +0100)]
Revert c7683d5aae3d154250df531a5d34e4a464b5ced2

'valid users' option, cf #472.

11 years agoFix an error where catalog search gave incomplete results
Ralph Boehme [Thu, 6 Dec 2012 08:55:53 +0000 (09:55 +0100)]
Fix an error where catalog search gave incomplete results

The bug was immediately solved when chaning the current implementation
of using the function dirlookup_bybath() with paths form the dirstack,
to dirlook() with dids stored in the dirstack.
Presumably something dirlookup_bybath() went wrong thus ceratain
folders weren't searched.

Fixes bug #479.

11 years agoDon't force errno ENOATTR on Solaris
Ralph Boehme [Wed, 5 Dec 2012 11:39:08 +0000 (12:39 +0100)]
Don't force errno ENOATTR on Solaris

11 years agoEnsure CNID info is set in metadata
Ralph Boehme [Wed, 5 Dec 2012 12:06:27 +0000 (13:06 +0100)]
Ensure CNID info is set in metadata

11 years agoEnhance log message
Ralph Boehme [Wed, 5 Dec 2012 11:38:09 +0000 (12:38 +0100)]
Enhance log message

11 years agoFix a log messsage
Ralph Boehme [Wed, 5 Dec 2012 10:26:09 +0000 (11:26 +0100)]
Fix a log messsage

11 years agoDont copy our metadata EA in copyfile()
Ralph Boehme [Tue, 4 Dec 2012 15:08:27 +0000 (16:08 +0100)]
Dont copy our metadata EA in copyfile()

Apparently Apple is now relying more on the AFP copyfile function
for file copies where source and destination are on the same vol.
The copying is done by our copyfile() function. It calls into
our VFS stack where in the end _all_ extended attributes of the
file, including our metadata EA, will be copied from source to
dest.
This resulted in an incorrect metadata EA on the destination file,
eg the CNID was still the one of the source file.
Obviously the metadata EA of the destination file must be created
such that all relevant fields are properly assigned.

Fixes bug #452.

11 years agoFix adouble refcounting
Ralph Boehme [Tue, 4 Dec 2012 14:58:51 +0000 (15:58 +0100)]
Fix adouble refcounting

Opening a file that doesn't have metadata with ADFLAGS_HF | AFFLAGS_NOHF
resulted in a successfull open (the error from the failed opening
of the nonexistent metadata is suppressed by AFFLAGS_NOHF), but
then the metadata refcount was increased becasue the error condition
was already reset to 0 at the place where we checked it.
Fixing this requires pushing the refcount increment deeper down the stack
into the individual functions where the error condition is still
available.

After fixing this, another bug became apparent in the mostyl empty
function ad_open_rf_v2().

Also fix an if check where what should be a comparison clobbered
a struct field.

11 years agosystemd service: show doc URL
HAT [Mon, 26 Nov 2012 16:11:33 +0000 (01:11 +0900)]
systemd service: show doc URL

ex.
netatalk.service - Netatalk AFP fileserver for Macintosh clients
          Loaded: loaded (/usr/lib/systemd/system/netatalk.service; disabled)
          Active: active (running) since Tue, 27 Nov 2012 01:03:44 +0900; 41s ago
            Docs: man:afp.conf(5)
                  man:netatalk(8)
                  man:afpd(8)
                  man:cnid_metad(8)
                  man:cnid_dbd(8)
                  http://netatalk.sourceforge.net/
         Process: 30813 ExecStart=/usr/local/sbin/netatalk (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/netatalk.service
                  ├ 30815 /usr/local/sbin/netatalk
                  ├ 30816 /usr/local/sbin/afpd -d -F /usr/local/etc/afp.conf
                  ├ 30817 /usr/local/sbin/cnid_metad -d -F /usr/local/etc/afp.conf
                  └ 30823 /usr/local/sbin/cnid_dbd -F /usr/local/etc/afp.conf -p /export/test -t 7 -l 5

11 years agoAdd option 'ad domain'
Ralph Boehme [Wed, 28 Nov 2012 13:23:33 +0000 (14:23 +0100)]
Add option 'ad domain'

Add option 'ad domain' similar to 'nt domain'. Useful when
authenticating against Netatalk on Solaris in case the OS is bound
to Active Directory. Currently users have to type in their full AD
name user@domain. Adding an option 'ad domain' would allows users
to login giving just their usernames.

Implements FR #66.

11 years agoImport manpage from XML
Frank Lahm [Wed, 28 Nov 2012 08:25:28 +0000 (09:25 +0100)]
Import manpage from XML

11 years agoDon't convert AppleDouble v2 file of symlinks, delete it
Ralph Boehme [Tue, 27 Nov 2012 17:04:29 +0000 (18:04 +0100)]
Don't convert AppleDouble v2 file of symlinks, delete it

Netatalk 2.x created AppleDouble files for symlinks. Netatalk's 3
autoconversion of AppleDouble files to AppleDouble metadata
extended attributes failed to do the conversion in ad_convert()
because some filesystem may not support EAs on symlinks.

The new behaviour is to ignore symlinks in ad_convert().

Fixes bug #471.

11 years agoEnsure pthread support compiler and linker flags are correct
Frank Lahm [Tue, 20 Nov 2012 17:19:33 +0000 (18:19 +0100)]
Ensure pthread support compiler and linker flags are correct

On some platforms using AC_SEARCH_LIBS is not sufficient for
finding the linker flags for linking with a pthread library.
Add macro ax_pthread.m4 from GNU autoconf macro archive and
use the macro AX_PTHREAD.

Fix compiler and linker flags for afpd and libatalk.

Thanks to Jason Teska for pinpointing this.

11 years agoFix SIGHUP config reloading
Ralph Boehme [Thu, 22 Nov 2012 10:31:49 +0000 (11:31 +0100)]
Fix SIGHUP config reloading

Add SIGHUP handler to master 'netatalk' process and let it distribute
the signal to it's childs, eg afpd.

Add function afp_config_free() which releases ressources allocated
by afp_config_parse().
Additionally fix configinit()/configfree() which deal with ressources
only used in the afpd fileserver (eg sockets, zeroconf registration).

Fix an error in the mdns unregister code where pthread_kill() was
used but that somehow killed the whole process not just the mdns
thread. Use pthread_cancel() instead which seems to work.

Fix any ressource leak reported by libumem.

11 years agocreatvol() must return a struct vol pointer
Ralph Boehme [Tue, 27 Nov 2012 09:31:51 +0000 (10:31 +0100)]
creatvol() must return a struct vol pointer

11 years agoFix a ressource leak
Ralph Boehme [Mon, 26 Nov 2012 15:19:02 +0000 (16:19 +0100)]
Fix a ressource leak

Due to the ordering and multiplexing of data- and metadata handle
closing in ad_close(), a datafork lock handle was not released.
Releasing lock handles is now done when the logic fork counter
hits zero, not when the underlying filedescriptor referencing handle
count reaches zero.

11 years agoFix type
Ralph Boehme [Mon, 26 Nov 2012 16:18:53 +0000 (17:18 +0100)]
Fix type

11 years agoUpdate NEWS
Ralph Boehme [Mon, 26 Nov 2012 09:59:01 +0000 (10:59 +0100)]
Update NEWS

11 years agoReloading volumes from config file was broken
Ralph Boehme [Fri, 23 Nov 2012 17:23:24 +0000 (18:23 +0100)]
Reloading volumes from config file was broken

load_volumes() is supposed to be a "reenetrant" function called from
various places in different programs (afpd, cnid_metad) to reload the
config for updating the volume list.

Fix the loop freeing volumes that are deleted.

Simplify the loop checking for paths and volume names in createvol().
This is also the loop which checks if a volume is already loaded
when config has been loaded before.

Remove checks for nested paths.

Fixes bug #474.

11 years agoAdd logtype_ad
Ralph Boehme [Sat, 24 Nov 2012 15:34:14 +0000 (16:34 +0100)]
Add logtype_ad

11 years agoImport manpage from XML
Frank Lahm [Fri, 23 Nov 2012 10:33:06 +0000 (11:33 +0100)]
Import manpage from XML

11 years agoRemove lenght limitation of options like "valid users"
Ralph Boehme [Fri, 23 Nov 2012 09:23:27 +0000 (10:23 +0100)]
Remove lenght limitation of options like "valid users"

The options "valid users", "rolist" and others use the function
accessvol() for parsing the options string. accessfull uses
a static buffer limited to MAXPATHLEN which limits the maximum
length of these options.

Fix this by using a strdup()ed buffer instead.

Fixes bug #473.

11 years agoAdd error check macro EC_EXIT_STATUS
Ralph Boehme [Fri, 23 Nov 2012 09:19:13 +0000 (10:19 +0100)]
Add error check macro EC_EXIT_STATUS

11 years ago"valid users" options and friends only use ',' as field delimiter
Ralph Boehme [Fri, 23 Nov 2012 07:15:51 +0000 (08:15 +0100)]
"valid users" options and friends only use ',' as field delimiter

Netatalk 3 uses ',' and ' ' as field delimiter in the "valid users",
"invalid users", "rolist" and "rwlist" option for consistency with
other options that also allow the use of ' ' as field delimiter.
But as user and groupnames may contain spaces, we need to revert
to the Netatalk 2 behaviour where only ',' was used as delimiter.

Fixes bug #472.

11 years agoFix pathname bug for FCE modified event
Frank Lahm [Fri, 9 Nov 2012 11:48:53 +0000 (12:48 +0100)]
Fix pathname bug for FCE modified event

It's not guaranteed that cwd is the forks parent directory, thus
we can't use the fullpathname(forkname) wrapper.
Instead we use the DID stored in the ofork structure to dirlookup
the directory and use it's fullpath together with the fork's name.

11 years agoUse sigaction() instead of signal() for ignoring SIGPIPE
Frank Lahm [Thu, 22 Nov 2012 08:58:02 +0000 (09:58 +0100)]
Use sigaction() instead of signal() for ignoring SIGPIPE

Move the code to ignore SIGPIPE from the DSI sesssion setup stage
to the main signal handling code in main() and avoid the use
of deprecated signal() function and use sigaction.

11 years agoFix a bug where copying packages to a Netatalk share fails
Frank Lahm [Sat, 17 Nov 2012 11:30:18 +0000 (12:30 +0100)]
Fix a bug where copying packages to a Netatalk share fails

The bug was caused by the 10.6 client trying to set the creation
date on a symlink in the package. This caused our setmetadata
routine to require a valid adouble handle for the symlink which is
not possible as symlink may not allow creating an EA, depending
on the filesystem. At least ZFS on Solaris doesnt.
The fix is to check whether the adouble handle creation failed
on a symlink and ignore the error.

Fixes bug #469.

11 years agoAlways generate all initscripts
Frank Lahm [Sat, 17 Nov 2012 13:14:17 +0000 (14:14 +0100)]
Always generate all initscripts

initscripts are now all created with variable substitution from
the templates, but they're not installed. Installation happens
only if the configure arg for the platform is used.
This should help packagers picking up an initscript for a package.

11 years agoRevert "Enhance handling of nested volume paths"
Frank Lahm [Thu, 15 Nov 2012 16:53:31 +0000 (17:53 +0100)]
Revert "Enhance handling of nested volume paths"

This reverts commit 949ba93384843d13099dd467aefc61e3b7185997.

11 years agoEnhance handling of nested volume paths
Frank Lahm [Tue, 13 Nov 2012 09:17:36 +0000 (10:17 +0100)]
Enhance handling of nested volume paths

Force cnidscheme "last" and read-only behaviour for volumes whos
volume path is a subdirectory (nested) of another volume.

In case cnid scheme is not last, a message is logged with a logvel
of log_note.

11 years agoFCE API change and cleanup
Frank Lahm [Fri, 9 Nov 2012 10:53:24 +0000 (11:53 +0100)]
FCE API change and cleanup

Change the FCE API by using a single function (fce_register()) as
a single point for callers to register events.
Remove all individual event functions.

Add types for events and file/directoy flag.

Use standard bool type instead of special defines FCE_TRUE/FALSE.

11 years agoAdd function basename_safe
Frank Lahm [Fri, 9 Nov 2012 10:42:30 +0000 (11:42 +0100)]
Add function basename_safe

11 years ago0 terminate packet data
Frank Lahm [Thu, 8 Nov 2012 11:19:04 +0000 (12:19 +0100)]
0 terminate packet data

11 years agoRemove TimeMachine volume used size FCE event
Frank Lahm [Thu, 8 Nov 2012 10:39:13 +0000 (11:39 +0100)]
Remove TimeMachine volume used size FCE event

11 years agoAdd FCE type names and adjust logtypes to new fce facility
Frank Lahm [Thu, 8 Nov 2012 09:42:16 +0000 (10:42 +0100)]
Add FCE type names and adjust logtypes to new fce facility

11 years agoRemove AppleTalk logger types and add FCE type
Frank Lahm [Thu, 8 Nov 2012 09:41:33 +0000 (10:41 +0100)]
Remove AppleTalk logger types and add FCE type

11 years agoFix memory leak introduce in 18918d1
Frank Lahm [Wed, 7 Nov 2012 11:59:55 +0000 (12:59 +0100)]
Fix memory leak introduce in 18918d1

11 years agoAdd missing header
Frank Lahm [Fri, 2 Nov 2012 03:01:15 +0000 (04:01 +0100)]
Add missing header

11 years agoAdd support for filetype search
Frank Lahm [Fri, 2 Nov 2012 00:17:02 +0000 (01:17 +0100)]
Add support for filetype search

11 years agoAdd lots of mappings and dont ignore case stuff
Frank Lahm [Thu, 1 Nov 2012 22:10:26 +0000 (23:10 +0100)]
Add lots of mappings and dont ignore case stuff

11 years agoMap Spotlight searchstring to regex format and allow dots in it
Frank Lahm [Thu, 1 Nov 2012 20:20:14 +0000 (21:20 +0100)]
Map Spotlight searchstring to regex format and allow dots in it

11 years agoAdd negation support
Frank Lahm [Thu, 1 Nov 2012 18:52:46 +0000 (19:52 +0100)]
Add negation support

11 years agoSPARQL query variables must be distinct
Frank Lahm [Thu, 1 Nov 2012 18:20:18 +0000 (19:20 +0100)]
SPARQL query variables must be distinct

11 years agoSupport unix dates and comparison with dates for attributes
Frank Lahm [Thu, 1 Nov 2012 17:57:04 +0000 (18:57 +0100)]
Support unix dates and comparison with dates for attributes

11 years agoBetter parsing
Frank Lahm [Thu, 1 Nov 2012 14:04:21 +0000 (15:04 +0100)]
Better parsing

11 years agoVarious fixes
Frank Lahm [Thu, 1 Nov 2012 11:32:38 +0000 (12:32 +0100)]
Various fixes

11 years agoCheck yyparse() return value
Frank Lahm [Thu, 1 Nov 2012 08:51:15 +0000 (09:51 +0100)]
Check yyparse() return value

11 years agoload_vol() changed args
Frank Lahm [Thu, 1 Nov 2012 04:55:54 +0000 (05:55 +0100)]
load_vol() changed args

11 years agoMerge branch 'develop'
Frank Lahm [Thu, 1 Nov 2012 04:47:19 +0000 (05:47 +0100)]
Merge branch 'develop'

11 years agoAdd missing NULL initializer
Frank Lahm [Thu, 1 Nov 2012 04:34:12 +0000 (05:34 +0100)]
Add missing NULL initializer

11 years agoUse a lexxer and a parser for mapping Spotlight raw queries to SPARQL
Frank Lahm [Thu, 1 Nov 2012 00:33:16 +0000 (01:33 +0100)]
Use a lexxer and a parser for mapping Spotlight raw queries to SPARQL

11 years agoFunction tracker_to_unix_path() is static
Frank Lahm [Wed, 31 Oct 2012 09:52:07 +0000 (10:52 +0100)]
Function tracker_to_unix_path() is static

11 years agoFix file indexing
Frank Lahm [Tue, 30 Oct 2012 23:04:33 +0000 (00:04 +0100)]
Fix file indexing

Initialize Tracker miner manager in module initialization and wrap
miner calls within become_root()/unbecome_root().

11 years agostp2
Frank Lahm [Tue, 30 Oct 2012 18:32:34 +0000 (19:32 +0100)]
stp2

11 years agoFix make distcheck error
Frank Lahm [Tue, 30 Oct 2012 18:32:07 +0000 (19:32 +0100)]
Fix make distcheck error

11 years agoFix array initializers
Frank Lahm [Tue, 30 Oct 2012 18:16:05 +0000 (19:16 +0100)]
Fix array initializers

11 years agostp1
Frank Lahm [Tue, 30 Oct 2012 17:50:40 +0000 (18:50 +0100)]
stp1

11 years agoFix _device-info service type registered with dns-sd API
Frank Lahm [Tue, 30 Oct 2012 10:49:40 +0000 (11:49 +0100)]
Fix _device-info service type registered with dns-sd API

11 years agoFix typo
Frank Lahm [Wed, 24 Oct 2012 18:08:32 +0000 (20:08 +0200)]
Fix typo

11 years ago--with-libevent-header|lib requires a path
Frank Lahm [Wed, 24 Oct 2012 10:18:43 +0000 (12:18 +0200)]
--with-libevent-header|lib requires a path

Throw an error if any either configure option is passed without a path.

Add libevent to library configure summary.

11 years agoSet Tracker index directories on startup as all our volumes
Frank Lahm [Wed, 24 Oct 2012 10:14:19 +0000 (12:14 +0200)]
Set Tracker index directories on startup as all our volumes

11 years agoFix searching from OS X cmdline
Frank Lahm [Wed, 24 Oct 2012 07:38:31 +0000 (09:38 +0200)]
Fix searching from OS X cmdline

Searching from OS X cmdline with `mdfind` will generate queries with
an empty query attribute array. In that case we must add a nil element
for every query match to the filemeta array.

Also fixed:
* marshalling of empty CNID arrays and filemeta
* return 0x23 instead of 0 when returning a non empty result list, this
  is was traces of an OS X AFP server show

11 years agoInitialize Spotlight from session child
Frank Lahm [Tue, 23 Oct 2012 19:59:10 +0000 (21:59 +0200)]
Initialize Spotlight from session child

Spotlight initialisation must be perfomed in the session childs.
Wrap all Tracker calls between become_root()/unbecome_root().
Force bus SPARQL backend, as direct connections cause problems
with some SPARQL queries.

11 years agoChange dbus path option name to 'dbus daemon path' and add TRACKER_PREFIX define
Frank Lahm [Tue, 23 Oct 2012 19:02:47 +0000 (21:02 +0200)]
Change dbus path option name to 'dbus daemon path' and add TRACKER_PREFIX define

11 years agoAdd extmap.conf to EXTRA_DIST so that it gets picked up by make dist
Frank Lahm [Thu, 18 Oct 2012 18:00:27 +0000 (20:00 +0200)]
Add extmap.conf to EXTRA_DIST so that it gets picked up by make dist

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 agoGlobal boolean option "spotlight"
Frank Lahm [Wed, 17 Oct 2012 21:38:07 +0000 (23:38 +0200)]
Global boolean option "spotlight"

Add a global know to make Spotlight support a configurable option.
Defaults to disabled.

11 years agoSupport for FTS and filename search
Frank Lahm [Wed, 17 Oct 2012 21:06:21 +0000 (23:06 +0200)]
Support for FTS and filename search

Map * and kMDItemTextContent to SPARQL FTS, map kMDItemDisplayName to SPARQL
nfo:fileName. The SPARQL query for the latter doesn't work from afpd, but
it does work with tracker-sparql.

11 years agoBound checking when marshalling SL query results
Frank Lahm [Wed, 17 Oct 2012 12:18:59 +0000 (14:18 +0200)]
Bound checking when marshalling SL query results

11 years agoIncrease DSI reply buffer size to 65k
Frank Lahm [Wed, 17 Oct 2012 12:18:26 +0000 (14:18 +0200)]
Increase DSI reply buffer size to 65k

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 agoAdd tracker_miner_manager and try to manually index new files
Frank Lahm [Tue, 16 Oct 2012 23:08:25 +0000 (01:08 +0200)]
Add tracker_miner_manager and try to manually index new files

Doesn't work, hangs in tracker_miner_manager_new_full() for an unknown
reason.

11 years agoFall back to CatSearch if Spotlight module can't be loaded
Frank Lahm [Tue, 16 Oct 2012 20:04:55 +0000 (22:04 +0200)]
Fall back to CatSearch if Spotlight module can't be loaded

11 years agoAdd state checks
Frank Lahm [Tue, 16 Oct 2012 18:01:10 +0000 (20:01 +0200)]
Add state checks

11 years agoUse g_object_unref
Frank Lahm [Mon, 15 Oct 2012 17:05:11 +0000 (19:05 +0200)]
Use g_object_unref

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 agoUse glib funcs for getting the path for an uri
Frank Lahm [Tue, 16 Oct 2012 14:31:19 +0000 (16:31 +0200)]
Use glib funcs for getting the path for an uri

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 agoAppend /
Frank Lahm [Mon, 15 Oct 2012 18:11:57 +0000 (20:11 +0200)]
Append /

11 years agoRemove unused line
Frank Lahm [Mon, 15 Oct 2012 17:06:23 +0000 (19:06 +0200)]
Remove unused line

11 years agoModify SPARQL query
Frank Lahm [Mon, 15 Oct 2012 17:05:11 +0000 (19:05 +0200)]
Modify SPARQL query

11 years agoFix CNID marshalling
Frank Lahm [Mon, 15 Oct 2012 13:20:48 +0000 (15:20 +0200)]
Fix CNID marshalling

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