src/findlib/attribs.c
int encode_attribsEx(JCR *jcr, char *attribsEx, FF_PKT *ff_pkt)
{
#ifdef HAVE_DARWIN_OS
   /*
    * We save the Mac resource fork length so that on a
    * restore, we can be sure we put back the whole resource.
    */
   char *p;

   *attribsEx = 0;                 /* no extended attributes (yet) */
   if (jcr->cmd_plugin || ff_pkt->type == FT_DELETED) {
      return STREAM_UNIX_ATTRIBUTES;
   }
   p = attribsEx;
   if (ff_pkt->flags & FO_HFSPLUS) {
      p += to_base64((uint64_t)(ff_pkt->hfsinfo.rsrclength), p);
   }
   *p = 0;
#else
   *attribsEx = 0;                    /* no extended attributes */
#endif
   return STREAM_UNIX_ATTRIBUTES;
}
/*
 * It is possible to piggyback additional data e.g. ACLs on
 *   the encode_stat() data by returning the extended attributes
 *   here.  They must be "self-contained" (i.e. you keep track
 *   of your own length), and they must be in ASCII string
 *   format. Using this feature is not recommended.
 * The code below shows how to return nothing.  See the Win32
 *   code below for returning something in the attributes.
 */
It is possible to piggyback additional data e.g. ACLs on
the encode_stat() data by returning the extended attributes
here.  They must be "self-contained" , and they must be in ASCII string
format. Using this feature is not recommended.
The code below shows how to return nothing.  See the Win32
code below for returning something in the attributes.
It is possible to piggyback additional data e . g . ACLs on the encode_stat () data by returning the extended attributes here . They must be " self - contained " and they must be in ASCII string format . Using this feature is not recommended . The code below shows how to return nothing . See the Win32 code below for returning something in the attributes .
int encode_attribsEx(JCR *jcr, char *attribsEx, FF_PKT *ff_pkt)
{
#ifdef HAVE_DARWIN_OS
   char *p;
   *attribsEx = 0;                 
   if (jcr->cmd_plugin || ff_pkt->type == FT_DELETED) {
      return STREAM_UNIX_ATTRIBUTES;
   }
   p = attribsEx;
   if (ff_pkt->flags & FO_HFSPLUS) {
      p += to_base64((uint64_t)(ff_pkt->hfsinfo.rsrclength), p);
   }
   *p = 0;
#else
   *attribsEx = 0;                    
#endif
   return STREAM_UNIX_ATTRIBUTES;
}
int encode_attribsEx ( JCR * jcr , char * attribsEx , FF_PKT * ff_pkt ) { #ifdef HAVE_DARWIN_OS char * p ; * attribsEx = 0 ; if ( jcr -> cmd_plugin || ff_pkt -> type == FT_DELETED ) { return STREAM_UNIX_ATTRIBUTES ; } p = attribsEx ; if ( ff_pkt -> flags & FO_HFSPLUS ) { p += to_base64 ( ( uint64_t ) ( ff_pkt -> hfsinfo . rsrclength ) , p ) ; } * p = 0 ; #else * attribsEx = 0 ; #endif return STREAM_UNIX_ATTRIBUTES ; }
It is possible to piggyback additional data e.g.
It is possible to piggyback additional data e . g .
/*
    * We save the Mac resource fork length so that on a
    * restore, we can be sure we put back the whole resource.
    */ /* no extended attributes (yet) */ /* no extended attributes */