]>
arthur.barton.de Git - netatalk.git/log
Ralph Boehme [Wed, 20 Feb 2013 13:53:36 +0000 (14:53 +0100)]
Fixes
Ralph Boehme [Tue, 19 Feb 2013 13:19:42 +0000 (14:19 +0100)]
Add tracker loglevel config option
Ralph Boehme [Tue, 19 Feb 2013 10:19:21 +0000 (11:19 +0100)]
Add a tracker.cfg file
Ralph Boehme [Tue, 19 Feb 2013 09:56:47 +0000 (10:56 +0100)]
Add filetype searching and searching by dates
Ralph Boehme [Mon, 18 Feb 2013 16:43:53 +0000 (17:43 +0100)]
Basic Tracker RDF queries working
Ralph Boehme [Mon, 18 Feb 2013 07:15:20 +0000 (08:15 +0100)]
Rename Tracker 0.6 module to RDF
Ralph Boehme [Thu, 14 Feb 2013 15:24:11 +0000 (16:24 +0100)]
Merge branch 'develop' into spotlight
Conflicts:
VERSION
configure.ac
Ralph Boehme [Thu, 14 Feb 2013 15:17:03 +0000 (16:17 +0100)]
Merge branch 'spotlight' of netafp.com:git/netatalk into spotlight
franklahm [Thu, 14 Feb 2013 14:47:17 +0000 (06:47 -0800)]
Merge pull request #20 from hat001/redhatinit
update RedHat initscript
HAT [Thu, 14 Feb 2013 14:27:29 +0000 (23:27 +0900)]
update RedHat initscript
"graceful" is removed because SIGQUIT is gone.
"reload" use SIGHUP.
"condrestart" is added because spec file requires it.
Riccardo Magliocchetti [Wed, 13 Feb 2013 21:18:41 +0000 (22:18 +0100)]
afpd/file: fix check in deletefile
AD_RSRC_OPEN(ad) is defined as:
(((ad)->ad_reso_refcount) && (ad_reso_fileno(ad) >= 0))
So there's no way it can returns -1
Reported by coverity as CID #762087.
Riccardo Magliocchetti [Wed, 13 Feb 2013 20:58:00 +0000 (21:58 +0100)]
libatalk: avoid double close in ad_openat
Partly revert
8852315e574879a9548c31f84c6eaea59f1db90f
Reported by Coverity as CID #980995.
Riccardo Magliocchetti [Wed, 13 Feb 2013 20:54:01 +0000 (21:54 +0100)]
afpd/volume: avoid read of unitialized pointer
Reported by Coverity as CID #980994.
Frank Lahm [Wed, 13 Feb 2013 16:27:52 +0000 (17:27 +0100)]
Couldn't create folders on FreeBSD 9.1 ZFS fileystems
Fixes bug #491.
franklahm [Tue, 12 Feb 2013 06:01:29 +0000 (22:01 -0800)]
Merge pull request #18 from xrmx/coverity3
More issues reported by Coverity
Riccardo Magliocchetti [Mon, 11 Feb 2013 21:43:53 +0000 (22:43 +0100)]
libatal/vfs: stats a path before checking if it is a directory
Reported by Coverity as CID #201301.
Riccardo Magliocchetti [Mon, 11 Feb 2013 21:35:21 +0000 (22:35 +0100)]
afpd/directory: avoid unitialized pointer read
Initialize fullpath to null so that in case of error before its
allocation we don't call bdestroy on random memory.
Reported by Coverity as CID #201284.
Riccardo Magliocchetti [Mon, 11 Feb 2013 21:31:24 +0000 (22:31 +0100)]
cnid_dbd: fix resource leak
Reported by Coverity as CID #968567.
Riccardo Magliocchetti [Mon, 11 Feb 2013 21:18:01 +0000 (22:18 +0100)]
afpd/colume: fix a couple of memory leaks
Reported by Coverity as CID #201199, #201200.
Riccardo Magliocchetti [Mon, 11 Feb 2013 21:11:46 +0000 (22:11 +0100)]
afpd/filedir: fix memory leak
Reported by Coverity as CID #201196.
Riccardo Magliocchetti [Mon, 11 Feb 2013 21:03:26 +0000 (22:03 +0100)]
afpd/file: fix memory leak
Reported by Coverity as CID #201194.
Ralph Boehme [Thu, 7 Feb 2013 11:25:13 +0000 (12:25 +0100)]
systemd service file use PIDFile and ExecReload
Add --with-lockfile=PATH configure option for specifying an
alternative path for the netatalk lockfile.
Implements FR #70.
franklahm [Sun, 10 Feb 2013 07:30:24 +0000 (23:30 -0800)]
Merge pull request #17 from hat001/staticlibevent
bundled libevent2 is static
HAT [Sun, 10 Feb 2013 03:27:35 +0000 (12:27 +0900)]
bundled libevent2 is static
franklahm [Sat, 9 Feb 2013 21:09:50 +0000 (13:09 -0800)]
Merge pull request #16 from xrmx/coverity2
More issues reported by Coverity
franklahm [Sat, 9 Feb 2013 21:09:02 +0000 (13:09 -0800)]
Merge pull request #15 from xrmx/coverity1
Fix some issues reported by Coverity scan
Riccardo Magliocchetti [Sat, 9 Feb 2013 11:11:19 +0000 (12:11 +0100)]
afpd/hash: return error if we can't allocate the hash
Instead of possible dereference of null.
Reported by Coverity as CID #968565.
Riccardo Magliocchetti [Sat, 9 Feb 2013 11:07:28 +0000 (12:07 +0100)]
afpd/acls: fix dereference before null check error
Reported by Coverity as CID #968569.
Riccardo Magliocchetti [Sat, 9 Feb 2013 10:57:46 +0000 (11:57 +0100)]
afpd: fix out of bounds write
Reported by Coverity as CID #762111.
Riccardo Magliocchetti [Sat, 9 Feb 2013 10:49:42 +0000 (11:49 +0100)]
cnid_metad: avoid out of bounds read
The check of i < MAXVOLS should be moved before referencing srv[i].
Reported by Coverity as CID #762114.
Riccardo Magliocchetti [Sat, 9 Feb 2013 10:36:29 +0000 (11:36 +0100)]
libatalk: Fix a couple of issues in ad_openat()
Reported by coverity as CID #762151, #762127.
Riccardo Magliocchetti [Fri, 1 Feb 2013 18:33:59 +0000 (19:33 +0100)]
afpd/fce_api: avoid null pointer dereference
Move path NULL check before it is actually referenced.
Reported by Coverity as CID #968570.
Riccardo Magliocchetti [Fri, 1 Feb 2013 18:23:28 +0000 (19:23 +0100)]
afpd/fork: avoid use after free on of_closefork error
Reported by Coverity as CID #201311.
Riccardo Magliocchetti [Fri, 1 Feb 2013 18:22:17 +0000 (19:22 +0100)]
afpd/hash: avoid use after free in main in case of OOM
Reported by Coverity as CID #968574, #968575.
Ralph Boehme [Wed, 6 Feb 2013 07:30:17 +0000 (08:30 +0100)]
Remove continous service feature
Ralph Boehme [Mon, 4 Feb 2013 16:07:08 +0000 (17:07 +0100)]
Merge branch 'autobuild-dsi' into develop
Riccardo Magliocchetti [Fri, 1 Feb 2013 18:21:01 +0000 (19:21 +0100)]
afpd/volume: don't leak vol_mname in afp_openvol
Reported as Coverity by CID #201201
franklahm [Thu, 31 Jan 2013 16:21:36 +0000 (08:21 -0800)]
Merge pull request #13 from hat001/dbdshowpath
dbd command show path
HAT [Wed, 30 Jan 2013 16:06:57 +0000 (01:06 +0900)]
dbd command show path
dbd command show path #2 (use fullpathname)
Ralph Boehme [Thu, 24 Jan 2013 18:00:23 +0000 (19:00 +0100)]
Increase default DSI blocksize to 1 MB, taken from 10.8 AFP server
Ralph Boehme [Tue, 22 Jan 2013 16:40:59 +0000 (17:40 +0100)]
Disable legace Tracker 0.6 support if tracker-sparql is found
Frank Lahm [Mon, 21 Jan 2013 17:47:50 +0000 (18:47 +0100)]
Ignore develop abi file
Frank Lahm [Mon, 21 Jan 2013 17:43:09 +0000 (18:43 +0100)]
Set version to 3.0.3dev
Frank Lahm [Mon, 21 Jan 2013 17:16:01 +0000 (18:16 +0100)]
Add 3.0.2 ABI file and set library version
Frank Lahm [Mon, 21 Jan 2013 17:10:34 +0000 (18:10 +0100)]
Set version to 3.0.2
Ralph Boehme [Mon, 21 Jan 2013 16:50:04 +0000 (17:50 +0100)]
Update NEWS
Ralph Boehme [Mon, 21 Jan 2013 14:06:39 +0000 (15:06 +0100)]
dbd failed to convert appledouble files of symlinks
dbd simply skipped symlinks, fix this by possibly deleting the
appledouble file but still skip the CNID checks.
Also remove left-over rebuild db stuff which isn't used anymore since
the large dbd rewrite at
4913dbbc5b69642dacbe7302fc25d25f47e9c00c .
Fixes #490.
Ralph Boehme [Sat, 19 Jan 2013 17:28:40 +0000 (18:28 +0100)]
Multiple fixes and new manpage extmap.conf
Ralph Boehme [Fri, 18 Jan 2013 16:54:38 +0000 (17:54 +0100)]
Add checking for kMDQueryItemArray
Frank Lahm [Fri, 18 Jan 2013 16:30:19 +0000 (17:30 +0100)]
Add checking for kMDQueryItemArray to Tracker SPARQL too
Ralph Boehme [Fri, 18 Jan 2013 14:43:27 +0000 (15:43 +0100)]
Better checking for mappable subexpressions
Ralph Boehme [Tue, 8 Jan 2013 16:00:53 +0000 (17:00 +0100)]
Add support for Tracker 0.67 on Solaris
Unfortunately Solaris and derived systems ship and outdated version
of Tracker which doesn't support SPARQL queries.
This adds support for limited searches using this older API.
Ralph Boehme [Wed, 16 Jan 2013 16:34:32 +0000 (17:34 +0100)]
Fix extension mapping
Extension mapping did only work for files with a valid metadata EA.
Fixed in #487.
Ralph Boehme [Wed, 16 Jan 2013 10:00:58 +0000 (11:00 +0100)]
Fix conditional
Fix conditional compilation checks introduced in
4f6fbcfc5f685bfd67a69e014eb18df4d984ae36 .
Ralph Boehme [Mon, 14 Jan 2013 14:13:12 +0000 (15:13 +0100)]
Automatic AppleDouble conversion to EAs failing for directories
of_stat() need be called before calling ad_convert() in order to
have a valid struct stat of the element to be converted.
Fixes bug #486.
Frank Lahm [Thu, 3 Jan 2013 08:49:10 +0000 (09:49 +0100)]
Fix an off by 8
Frank Lahm [Thu, 3 Jan 2013 06:31:27 +0000 (07:31 +0100)]
Add UTF8 support
Frank Lahm [Thu, 3 Jan 2013 04:38:04 +0000 (05:38 +0100)]
Fix UTF16 unmarshalling
Ralph Boehme [Sun, 13 Jan 2013 16:01:44 +0000 (17:01 +0100)]
Move and rename Spotlight module
Ralph Boehme [Fri, 11 Jan 2013 11:15:52 +0000 (12:15 +0100)]
Set Tracker environment
Ralph Boehme [Wed, 9 Jan 2013 09:44:45 +0000 (10:44 +0100)]
Include config.h
Ralph Boehme [Wed, 9 Jan 2013 09:33:16 +0000 (10:33 +0100)]
Remove spotlight_rawquery_lexer.h
Ralph Boehme [Tue, 8 Jan 2013 16:00:11 +0000 (17:00 +0100)]
Check if any Spotlight module is actually loaded
Ralph Boehme [Tue, 8 Jan 2013 10:50:17 +0000 (11:50 +0100)]
Portability fixes
Ralph Boehme [Tue, 8 Jan 2013 09:54:11 +0000 (10:54 +0100)]
Merge remote-tracking branch 'origin/develop' into spotlight
Conflicts:
etc/netatalk/netatalk.c
Frank Lahm [Fri, 4 Jan 2013 14:46:34 +0000 (15:46 +0100)]
Remove CVS keywords
Ralph Boehme [Thu, 3 Jan 2013 17:34:48 +0000 (18:34 +0100)]
Remove 'duplicated volumes paths'
Ralph Boehme [Thu, 3 Jan 2013 12:44:59 +0000 (13:44 +0100)]
rights was removed in warnings cleanup
Ralph Boehme [Thu, 3 Jan 2013 12:42:22 +0000 (13:42 +0100)]
Remove MAP_FILE
Frank Lahm [Thu, 3 Jan 2013 12:27:20 +0000 (13:27 +0100)]
Fix compiler diagnostics
Frank Lahm [Thu, 3 Jan 2013 12:19:41 +0000 (13:19 +0100)]
Add correct copyright and license
Frank Lahm [Thu, 3 Jan 2013 12:17:48 +0000 (13:17 +0100)]
Comparison, not assignment
Frank Lahm [Wed, 2 Jan 2013 18:38:57 +0000 (19:38 +0100)]
On the hunt for fixing all warnings
Ralph Boehme [Wed, 2 Jan 2013 18:18:32 +0000 (19:18 +0100)]
Fix several warnings, remove const
Ralph Boehme [Wed, 2 Jan 2013 17:51:36 +0000 (18:51 +0100)]
Add copyright and license and config.h
Ralph Boehme [Wed, 2 Jan 2013 17:49:21 +0000 (18:49 +0100)]
Remove const from path
Ralph Boehme [Wed, 2 Jan 2013 17:46:45 +0000 (18:46 +0100)]
Include config.h
Ralph Boehme [Wed, 2 Jan 2013 17:42:06 +0000 (18:42 +0100)]
Fix function definition, return type is pid_t
Ralph Boehme [Wed, 2 Jan 2013 17:39:30 +0000 (18:39 +0100)]
Use mkstemp instead of mktemp
Ralph Boehme [Wed, 2 Jan 2013 17:28:37 +0000 (18:28 +0100)]
Forward declate struct vol
Ralph Boehme [Wed, 2 Jan 2013 17:09:51 +0000 (18:09 +0100)]
Check for memcpy and don't redefine if found
Spotted by cppcheck, from Riccardo Magliocchetti.
Ralph Boehme [Wed, 2 Jan 2013 17:07:50 +0000 (18:07 +0100)]
Fix O_NETATALK_ACL define in case ACL headers are not found
Spotted by cppcheck, from Riccardo Magliocchetti.
Ralph Boehme [Wed, 2 Jan 2013 15:07:15 +0000 (16:07 +0100)]
Initialize CopyRootInfo in reinit_db
Spotted by cppcheck, from Riccardo Magliocchetti.
Frank Lahm [Tue, 1 Jan 2013 20:57:58 +0000 (21:57 +0100)]
Fix for adflags
Frank Lahm [Wed, 2 Jan 2013 12:36:16 +0000 (13:36 +0100)]
Fix several VFS inconsistencies
acb180395693ed05a4e6a1edb6796c8e6f644a72 left several for_each_adouble()
calls broken.
Frank Lahm [Wed, 2 Jan 2013 11:07:36 +0000 (12:07 +0100)]
Simple fix, remove doubled colon from getopt string
Frank Lahm [Wed, 2 Jan 2013 10:53:32 +0000 (11:53 +0100)]
strdup optarg and add -m option for specifying the Mac charset
Frank Lahm [Sun, 30 Dec 2012 08:56:20 +0000 (09:56 +0100)]
Set charset names
Frank Lahm [Wed, 14 Nov 2012 15:02:41 +0000 (16:02 +0100)]
Configurable symlink behaviour
Add a new volumes option 'follow symlinks'. The default setting is
false, symlinks are not followed on the server. This is the same
behaviour as OS X's AFP server.
Setting the option to true causes afpd to follow symlinks on the
server. symlinks may point outside of the AFP volume, currently
afpd doesn't do any checks for "wide symlinks".
In order to provide a somewhat consistent interface, add an API
of o* function wrappers for filesytem related functions.
These functions take an an additonal option arg (hence the o) which
tells the functions whether symlinks shall be followed or not.
Ralph Boehme [Thu, 27 Dec 2012 11:55:00 +0000 (12:55 +0100)]
Import manpage from XML
Ralph Boehme [Thu, 27 Dec 2012 11:54:27 +0000 (12:54 +0100)]
Remove dupicate variable myvol, use vol instead
Ralph Boehme [Thu, 27 Dec 2012 11:45:22 +0000 (12:45 +0100)]
Several fixes
Allow the usage of -r option.
Fix flags argument to cnid_open().
Update usage.
Ralph Boehme [Thu, 27 Dec 2012 11:44:43 +0000 (12:44 +0100)]
Add dev to log message and print type as string
Ralph Boehme [Fri, 21 Dec 2012 14:14:00 +0000 (15:14 +0100)]
Fix an error parsing afp.conf in the iniparser
Netatalk didn't start when the last line of the config file
afp.conf wasn't terminated by a newline. Fixes bug #476.
Ralph Boehme [Wed, 19 Dec 2012 16:15:37 +0000 (17:15 +0100)]
Update news
Ralph Boehme [Tue, 11 Dec 2012 09:39:38 +0000 (10:39 +0100)]
Get the db stamp in cnid_get_stamp()
Previously we actually intersected the IPC call to get the db
stamp in transmit() when the firt actual CNID IPC function is
executed.
Drop the check for changed db stamps.
Add a simple function for the get stamp IPC stuff.
Ralph Boehme [Mon, 10 Dec 2012 17:38:07 +0000 (18:38 +0100)]
Restructure opening and deleting the CNID dbs and CNID wraparound support
If opening the db fails, delete it and recreate a new empty one.
Add handling of CNID overflow, ie when the last used CNID reaches
its maximum (UINT32_MAX), wrap around to CNID_START. This then neccesites
a modification to get_id() where we used to just increment the last
used CNID counter and use that as next CNID.
Now we need to ensure that it isn't already used in the db and keep
searching for an used in case it is in a loop.
Move locking function back to main.c, as it's only used by cnid_dbd.
Modify dbd_add() such that it can add an entry with the CNID passed
in from the client, the CNID hint read from the adouble file.
Invalidate CNID hint in case lookup detected a problem
Ralph Boehme [Mon, 10 Dec 2012 14:04:24 +0000 (15:04 +0100)]
Use ad_getid() instead of ad_forcegetid()
ad_getid() now ignores the db stamp when reading the CNID, so we
can simply use it instead of using ad_forcegetid().
Ralph Boehme [Mon, 10 Dec 2012 13:55:41 +0000 (14:55 +0100)]
Ignore db stamp when reading CNID from adouble file
The db stamp (which is the ctime of the cnid2.db file stored in the
db at creation time) may change when running `dbd -f` or when deleting
the CNID db manually. But we don't want to reassing CNIDs in this case
(changed stamp) we really want to keep it.
Ralph Boehme [Fri, 7 Dec 2012 17:33:32 +0000 (18:33 +0100)]
Rewrite dbd to use CNID IPC instead of opening the db directly
In order to fix buf #447 (race condition between dbd and cnid_dbd)
dbd must be converted to work over the network IPC channel with
cnid_dbd instead of directly working on the BerkeleyDB CNID database.
Add CNID db IPC command for wiping the db