* 1999 down. So the two naming spaces grows towards each other.
*/
#define STREAM_ACL_AIX_TEXT 1000 /* AIX specific string representation from acl_get */
-#define STREAM_ACL_DARWIN_ACCESS_ACL_T 1001 /* Darwin (OSX) specific acl_t string representation
+#define STREAM_ACL_DARWIN_ACCESS_ACL 1001 /* Darwin (OSX) specific acl_t string representation
* from acl_to_text (POSIX acl)
*/
-#define STREAM_ACL_FREEBSD_DEFAULT_ACL_T 1002 /* FreeBSD specific acl_t string representation
+#define STREAM_ACL_FREEBSD_DEFAULT_ACL 1002 /* FreeBSD specific acl_t string representation
* from acl_to_text (POSIX acl) for default acls.
*/
-#define STREAM_ACL_FREEBSD_ACCESS_ACL_T 1003 /* FreeBSD specific acl_t string representation
+#define STREAM_ACL_FREEBSD_ACCESS_ACL 1003 /* FreeBSD specific acl_t string representation
* from acl_to_text (POSIX acl) for access acls.
*/
#define STREAM_ACL_HPUX_ACL_ENTRY 1004 /* HPUX specific acl_entry string representation
* from acltostr (POSIX acl)
*/
-#define STREAM_ACL_IRIX_DEFAULT_ACL_T 1005 /* IRIX specific acl_t string representation
+#define STREAM_ACL_IRIX_DEFAULT_ACL 1005 /* IRIX specific acl_t string representation
* from acl_to_text (POSIX acl) for default acls.
*/
-#define STREAM_ACL_IRIX_ACCESS_ACL_T 1006 /* IRIX specific acl_t string representation
+#define STREAM_ACL_IRIX_ACCESS_ACL 1006 /* IRIX specific acl_t string representation
* from acl_to_text (POSIX acl) for access acls.
*/
-#define STREAM_ACL_LINUX_DEFAULT_ACL_T 1007 /* Linux specific acl_t string representation
+#define STREAM_ACL_LINUX_DEFAULT_ACL 1007 /* Linux specific acl_t string representation
* from acl_to_text (POSIX acl) for default acls.
*/
-#define STREAM_ACL_LINUX_ACCESS_ACL_T 1008 /* Linux specific acl_t string representation
+#define STREAM_ACL_LINUX_ACCESS_ACL 1008 /* Linux specific acl_t string representation
* from acl_to_text (POSIX acl) for access acls.
*/
-#define STREAM_ACL_TRU64_DEFAULT_ACL_T 1009 /* Tru64 specific acl_t string representation
+#define STREAM_ACL_TRU64_DEFAULT_ACL 1009 /* Tru64 specific acl_t string representation
* from acl_to_text (POSIX acl) for default acls.
*/
-#define STREAM_ACL_TRU64_DEFAULT_DIR_ACL_T 1010 /* Tru64 specific acl_t string representation
+#define STREAM_ACL_TRU64_DEFAULT_DIR_ACL 1010 /* Tru64 specific acl_t string representation
* from acl_to_text (POSIX acl) for default acls.
*/
-#define STREAM_ACL_TRU64_ACCESS_ACL_T 1011 /* Tru64 specific acl_t string representation
+#define STREAM_ACL_TRU64_ACCESS_ACL 1011 /* Tru64 specific acl_t string representation
* from acl_to_text (POSIX acl) for access acls.
*/
-#define STREAM_ACL_SOLARIS_ACLENT_T 1012 /* Solaris specific aclent_t string representation
+#define STREAM_ACL_SOLARIS_ACLENT 1012 /* Solaris specific aclent_t string representation
* from acltotext or acl_totext (POSIX acl)
*/
-#define STREAM_ACL_SOLARIS_ACE_T 1013 /* Solaris specific ace_t string representation from
+#define STREAM_ACL_SOLARIS_ACE 1013 /* Solaris specific ace_t string representation from
* from acl_totext (NFSv4 or ZFS acl)
*/
#define STREAM_XATTR_DARWIN 1996 /* Darwin (OSX) specific extended attributes */
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_DARWIN_ACCESS_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_DARWIN_ACCESS_ACL, len))
return false;
}
#endif
{
switch (stream) {
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_DARWIN_ACCESS_ACL_T:
+ case STREAM_ACL_DARWIN_ACCESS_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_ACCESS);
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_FREEBSD_ACCESS_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_FREEBSD_ACCESS_ACL, len))
return false;
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_FREEBSD_DEFAULT_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_FREEBSD_DEFAULT_ACL, len))
return false;
}
}
{
switch (stream) {
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_FREEBSD_ACCESS_ACL_T:
+ case STREAM_ACL_FREEBSD_ACCESS_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_ACCESS);
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_FREEBSD_DEFAULT_ACL_T:
+ case STREAM_ACL_FREEBSD_DEFAULT_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_DEFAULT);
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_IRIX_ACCESS_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_IRIX_ACCESS_ACL, len))
return false;
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_IRIX_DEFAULT_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_IRIX_DEFAULT_ACL, len))
return false;
}
}
{
switch (stream) {
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_IRIX_ACCESS_ACL_T:
+ case STREAM_ACL_IRIX_ACCESS_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_ACCESS);
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_IRIX_DEFAULT_ACL_T:
+ case STREAM_ACL_IRIX_DEFAULT_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_DEFAULT);
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_LINUX_ACCESS_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_LINUX_ACCESS_ACL, len))
return false;
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_LINUX_DEFAULT_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_LINUX_DEFAULT_ACL, len))
return false;
}
}
{
switch (stream) {
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_LINUX_ACCESS_ACL_T:
+ case STREAM_ACL_LINUX_ACCESS_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_ACCESS);
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_LINUX_DEFAULT_ACL_T:
+ case STREAM_ACL_LINUX_DEFAULT_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_DEFAULT);
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_TRU64_ACCESS_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_TRU64_ACCESS_ACL, len))
return false;
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_TRU64_DEFAULT_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_TRU64_DEFAULT_ACL, len))
return false;
}
return false;
if (len > 0) {
- if (!send_acl_stream(jcr, STREAM_ACL_TRU64_DEFAULT_DIR_ACL_T, len))
+ if (!send_acl_stream(jcr, STREAM_ACL_TRU64_DEFAULT_DIR_ACL, len))
return false;
}
}
{
switch (stream) {
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_TRU64_ACCESS_ACL_T:
+ case STREAM_ACL_TRU64_ACCESS_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_ACCESS);
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_TRU64_DEFAULT_ACL_T:
+ case STREAM_ACL_TRU64_DEFAULT_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_DEFAULT);
- case STREAM_ACL_TRU64_DEFAULT_DIR_ACL_T:
+ case STREAM_ACL_TRU64_DEFAULT_DIR_ACL:
return generic_set_acl_on_os(jcr, BACL_TYPE_DEFAULT_DIR);
}
#endif
switch (acl_type(aclp)) {
case ACLENT_T:
- stream_status = send_acl_stream(jcr, STREAM_ACL_SOLARIS_ACLENT_T, len);
+ stream_status = send_acl_stream(jcr, STREAM_ACL_SOLARIS_ACLENT, len);
break;
case ACE_T:
- stream_status = send_acl_stream(jcr, STREAM_ACL_SOLARIS_ACE_T, len);
+ stream_status = send_acl_stream(jcr, STREAM_ACL_SOLARIS_ACE, len);
break;
default:
break;
switch (stream) {
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_SOLARIS_ACLENT_T:
- case STREAM_ACL_SOLARIS_ACE_T:
+ case STREAM_ACL_SOLARIS_ACLENT:
+ case STREAM_ACL_SOLARIS_ACE:
if ((error = acl_fromtext(jcr->acl_data, &aclp)) != 0) {
Jmsg2(jcr, M_ERROR, 0, _("acl_fromtext error on file \"%s\": ERR=%s\n"),
jcr->last_fname, acl_strerror(error));
* Validate that the conversion gave us the correct acl type.
*/
switch (stream) {
- case STREAM_ACL_SOLARIS_ACLENT_T:
+ case STREAM_ACL_SOLARIS_ACLENT:
if (acl_type(aclp) != ACLENT_T) {
Jmsg1(jcr, M_ERROR, 0, _("wrong encoding of acl type in acl stream on file \"%s\"\n"),
jcr->last_fname);
return false;
}
- case STREAM_ACL_SOLARIS_ACE_T:
+ case STREAM_ACL_SOLARIS_ACE:
if (acl_type(aclp) != ACE_T) {
Jmsg1(jcr, M_ERROR, 0, _("wrong encoding of acl type in acl stream on file \"%s\"\n"),
jcr->last_fname);
actuallyfree(acl_text);
free(acls);
- return send_acl_stream(jcr, STREAM_ACL_SOLARIS_ACLENT_T, len);
+ return send_acl_stream(jcr, STREAM_ACL_SOLARIS_ACLENT, len);
}
berrno be;
return aix_parse_acl_stream(jcr, stream);
#elif defined(HAVE_DARWIN_OS)
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_DARWIN_ACCESS_ACL_T:
+ case STREAM_ACL_DARWIN_ACCESS_ACL:
return darwin_parse_acl_stream(jcr, stream);
#elif defined(HAVE_FREEBSD_OS)
case STREAM_UNIX_ACCESS_ACL:
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_FREEBSD_DEFAULT_ACL_T:
- case STREAM_ACL_FREEBSD_ACCESS_ACL_T:
+ case STREAM_ACL_FREEBSD_DEFAULT_ACL:
+ case STREAM_ACL_FREEBSD_ACCESS_ACL:
return freebsd_parse_acl_stream(jcr, stream);
#elif defined(HAVE_HPUX_OS)
case STREAM_UNIX_ACCESS_ACL:
#elif defined(HAVE_IRIX_OS)
case STREAM_UNIX_ACCESS_ACL:
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_IRIX_DEFAULT_ACL_T:
- case STREAM_ACL_IRIX_ACCESS_ACL_T:
+ case STREAM_ACL_IRIX_DEFAULT_ACL:
+ case STREAM_ACL_IRIX_ACCESS_ACL:
return irix_parse_acl_stream(jcr, stream);
#elif defined(HAVE_LINUX_OS)
case STREAM_UNIX_ACCESS_ACL:
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_LINUX_DEFAULT_ACL_T:
- case STREAM_ACL_LINUX_ACCESS_ACL_T:
+ case STREAM_ACL_LINUX_DEFAULT_ACL:
+ case STREAM_ACL_LINUX_ACCESS_ACL:
return linux_parse_acl_stream(jcr, stream);
#elif defined(HAVE_OSF1_OS)
case STREAM_UNIX_ACCESS_ACL:
case STREAM_UNIX_DEFAULT_ACL:
- case STREAM_ACL_TRU64_DEFAULT_ACL_T:
- case STREAM_ACL_TRU64_ACCESS_ACL_T:
- case STREAM_ACL_TRU64_DEFAULT_DIR_ACL_T:
+ case STREAM_ACL_TRU64_DEFAULT_ACL:
+ case STREAM_ACL_TRU64_ACCESS_ACL:
+ case STREAM_ACL_TRU64_DEFAULT_DIR_ACL:
return tru64_parse_acl_stream(jcr, stream);
#elif defined(HAVE_SUN_OS)
case STREAM_UNIX_ACCESS_ACL:
- case STREAM_ACL_SOLARIS_ACLENT_T:
+ case STREAM_ACL_SOLARIS_ACLENT:
#if defined(HAVE_EXTENDED_ACL)
- case STREAM_ACL_SOLARIS_ACE_T:
+ case STREAM_ACL_SOLARIS_ACE:
#endif
return solaris_parse_acl_stream(jcr, stream);
#endif
return _("Encrypted MacOS fork data");
case STREAM_ACL_AIX_TEXT:
return _("AIX Specific ACL attribs");
- case STREAM_ACL_DARWIN_ACCESS_ACL_T:
+ case STREAM_ACL_DARWIN_ACCESS_ACL:
return _("Darwin Specific ACL attribs");
- case STREAM_ACL_FREEBSD_DEFAULT_ACL_T:
+ case STREAM_ACL_FREEBSD_DEFAULT_ACL:
return _("FreeBSD Specific Default ACL attribs");
- case STREAM_ACL_FREEBSD_ACCESS_ACL_T:
+ case STREAM_ACL_FREEBSD_ACCESS_ACL:
return _("FreeBSD Specific Access ACL attribs");
case STREAM_ACL_HPUX_ACL_ENTRY:
return _("HPUX Specific ACL attribs");
- case STREAM_ACL_IRIX_DEFAULT_ACL_T:
+ case STREAM_ACL_IRIX_DEFAULT_ACL:
return _("Irix Specific Default ACL attribs");
- case STREAM_ACL_IRIX_ACCESS_ACL_T:
+ case STREAM_ACL_IRIX_ACCESS_ACL:
return _("Irix Specific Access ACL attribs");
- case STREAM_ACL_LINUX_DEFAULT_ACL_T:
+ case STREAM_ACL_LINUX_DEFAULT_ACL:
return _("Linux Specific Default ACL attribs");
- case STREAM_ACL_LINUX_ACCESS_ACL_T:
+ case STREAM_ACL_LINUX_ACCESS_ACL:
return _("Linux Specific Access ACL attribs");
- case STREAM_ACL_TRU64_DEFAULT_ACL_T:
+ case STREAM_ACL_TRU64_DEFAULT_ACL:
return _("OSF1 Specific Default ACL attribs");
- case STREAM_ACL_TRU64_ACCESS_ACL_T:
+ case STREAM_ACL_TRU64_ACCESS_ACL:
return _("OSF1 Specific Access ACL attribs");
- case STREAM_ACL_SOLARIS_ACLENT_T:
+ case STREAM_ACL_SOLARIS_ACLENT:
return _("Solaris Specific ACL attribs");
- case STREAM_ACL_SOLARIS_ACE_T:
+ case STREAM_ACL_SOLARIS_ACE:
return _("Solaris Specific ACL attribs");
case STREAM_XATTR_DARWIN:
return _("Darwin Specific Extended attribs");