Attila Fülöp wrote:
Kern Sibbald wrote:
<snip/>
Ok, than I will try to patch configure.in to detect ACL support on
solaris.
That would be very kind of you ... :-)
All right, I'll do. That said, it may take some time since I've no sun
at home and are not that familiar with autoconf.
Ok, it was easier than I thought. Currently I only tested autoconf/configure.
I have to compile and tested it yet, but that has to wait 'till Monday.
From what i saw in filed/acl.c I'm quite confident this will work.
A patch is attached. Well you're right backup.c/restore.c changed quite a
bit. I'm not sure if I will back port the changes. Think I'll decide on
Monday.
bash $ uname -iprs
SunOS 5.9 sparc SUNW,Ultra-80
bash $ ./configure-new --enable-client-only
....
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for acl_get_file... no
checking for acl_get_file in -lacl... no
checking for acltotext in -lsec... yes
....
ACL support: yes
....
bash-2.05$ grep lsec src/filed/Makefile
FDLIBS = -lsec -lz # extra libs for File daemon
Attila
How much effort would it be to back port the ACL changes to 1.36.3? I'm
a bit reluctant to update the production system to 1.38 right now.
You could look at it. Perhaps it wouldn't be too much effort, but the
code is conciderably changed because it has been moved around a lot
(new files). The code is now much simpler (at least the main line
code). However, there might be some complications with new features
or something. I'm having trouble keeping up as it is, so it isn't
something I would do, but I'd be happy to answer questions.
My advice would be to test 1.38 and move up -- aside from problems
with multiple concurrent jobs accessing autochangers, where users pull
cassettes in and out, it seems to be very stable (more so than 1.36 IMO).
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Index: configure.in
===================================================================
RCS file: /cvsroot/bacula/bacula/autoconf/configure.in,v
retrieving revision 1.191
diff -c -r1.191 configure.in
*** configure.in 3 Nov 2005 14:54:00 -0000 1.191
--- configure.in 11 Nov 2005 21:24:27 -0000
***************
*** 1575,1581 ****
have_acl=no
AC_CHECK_HEADER(sys/acl.h)
AC_CHECK_FUNC(acl_get_file, [have_acl=yes],
! [AC_CHECK_LIB(acl, acl_get_file, [have_acl=yes; FDLIBS="-lacl $FDLIBS"])]
)
if test $have_acl = yes; then
AC_DEFINE(HAVE_ACL)
--- 1575,1583 ----
have_acl=no
AC_CHECK_HEADER(sys/acl.h)
AC_CHECK_FUNC(acl_get_file, [have_acl=yes],
! [AC_CHECK_LIB(acl, acl_get_file, [have_acl=yes; FDLIBS="-lacl $FDLIBS"],
! [AC_CHECK_LIB(sec, acltotext, [have_acl=yes; FDLIBS="-lsec $FDLIBS"])]
! )]
)
if test $have_acl = yes; then
AC_DEFINE(HAVE_ACL)