]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1811 Filed fails to backup more then one xattr.
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 6 Jan 2012 19:44:18 +0000 (20:44 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 6 Jan 2012 19:44:18 +0000 (20:44 +0100)
commit59d32f7b782b07abf06a3407c3cca222971d4b7b
tree303b549ff13a78d3ae8690a86e1e79e985fe2583
parentc0e35c081717b14a3c528c83eb9a3e720b14ad2e
Fix bug #1811 Filed fails to backup more then one xattr.

On Solaris we fail to backup more then one xattr. There
are two serious wrong tests in the code that seem to predate
switch to the new bxattr_exit_* codes. Due to a side effect
the retval variable only gets set to a non 0 value
(bxattr_exit_ok) when the first xattr is saved as then the
hidden directory is saved and as such the retval
is set.

While scanning through the code for possible other retval
initialization errors and wrong code I fixed one other problem
in the Tru64 xattr code which we probably never encounter
as that platform is kind of dying.
bacula/src/filed/xattr.c