* Print the current name into the buffer as its not null terminated we need to
* use the length encoded in the string for copying only the needed bytes.
*/
- cnt = MIN((sizeof(current_attrname) - 1), xattr_list[index]);
+ cnt = MIN((int)(sizeof(current_attrname) - 1), xattr_list[index]);
strncpy(current_attrname, xattr_list + (index + 1), cnt);
current_attrname[cnt] = '\0';
*/
cnt = extattr_set_link(jcr->last_fname, current_attrnamespace,
attrname, current_xattr->value, current_xattr->value_length);
- if (cnt < 0 || cnt != current_xattr->value_length) {
+ if (cnt < 0 || cnt != (int)current_xattr->value_length) {
switch (errno) {
case ENOENT:
goto bail_out;
# Write out bconsole commands
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=200 storage=tape
run_bacula
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@out /dev/null
messages
@#
@# now do a restore