finale: translate_et (Unix) support for UAE

Add support for the UAE numbers to the Unix implementation of
translate_et.

example:
$ translate_et 49733388
49733388 (uae).12 = Permission denied

Change-Id: Id70aaf0fcbffd580ee21de39aa32923dda3e6dac
Reviewed-on: https://gerrit.openafs.org/14649
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
Mark Vitale 2021-06-18 23:54:00 -04:00 committed by Benjamin Kaduk
parent 4fd5c16612
commit bffc354ff7
2 changed files with 7 additions and 2 deletions

View File

@ -43,10 +43,12 @@ LIBS=${TOP_LIBDIR}/libubik.a \
${TOP_LIBDIR}/libafsrfc3961.a \
${XLIBS}
OBJS=${TOP_SRCDIR}/afs/unified_afs.o
all: translate_et
translate_et: translate_et.o ${INCLS}
$(AFS_LDRULE) translate_et.o ${LIBS} $(LIB_roken)
translate_et: translate_et.o ${OBJS} ${INCLS}
$(AFS_LDRULE) translate_et.o ${OBJS} ${LIBS} $(LIB_roken)
translate_et.o: AFS_component_version_number.c

View File

@ -22,8 +22,10 @@
#include <afs/bnode.h>
#include <afs/afsint.h>
#include <afs/volser.h>
#include <afs/unified_afs.h>
#include <ubik.h>
#define ERRCODE_RANGE 8 /* from error_table.h */
#include "AFS_component_version_number.c"
@ -60,6 +62,7 @@ main(int argc, char *argv[])
initialize_BZ_error_table();
initialize_U_error_table();
initialize_VOLS_error_table();
initialize_uae_error_table();
if (argc < 2) {
fprintf(stderr, "Usage is: %s [<code>]+\n", argv[0]);