Skip to content

Commit

Permalink
[Server] Code cleanup and add some missing table entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and simonmichal committed Dec 10, 2018
1 parent 35995fc commit 2d450fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/XProtocol/XProtocol.cc
Expand Up @@ -88,6 +88,7 @@ const char *errNames[kXR_ERRFENCE-kXR_ArgInvalid] =
"Invalid signature", // kXR_SigVerErr
"Decryption failed", // kXR_DecryptErr
"Overloaded", // kXR_Overloaded
"Filesystem is read only", // kXR_fsReadOnly
"Invalid payload format", // kXR_BadPayload
"File attrbute not found" // kXR_AttrNotFound
};
Expand Down
4 changes: 3 additions & 1 deletion src/XProtocol/XProtocol.hh
Expand Up @@ -941,6 +941,7 @@ static int mapError(int rc)
{if (rc < 0) rc = -rc;
switch(rc)
{case ENOENT: return kXR_NotFound;
case EINVAL: return kXR_ArgInvalid;
case EPERM: return kXR_NotAuthorized;
case EACCES: return kXR_NotAuthorized;
case EIO: return kXR_IOError;
Expand Down Expand Up @@ -994,7 +995,8 @@ static int toErrno( int xerr )
case kXR_SigVerErr: return EILSEQ;
case kXR_DecryptErr: return ERANGE;
case kXR_Overloaded: return EUSERS;
case kXR_fsReadOnly: return EROFS;
case kXR_fsReadOnly: return EROFS;
case kXR_BadPayload: return EINVAL;
case kXR_AttrNotFound: return ENOATTR;
default: return ENOMSG;
}
Expand Down
1 change: 1 addition & 0 deletions src/XrdSec/XrdSecProtect.cc
Expand Up @@ -114,6 +114,7 @@ kXR_close, kXR_signIgnore, kXR_signIgnore, kXR_signNeeded, kXR_signNeeded,
kXR_decrypt, kXR_signIgnore, kXR_signIgnore, kXR_signIgnore, kXR_signIgnore,
kXR_dirlist, kXR_signIgnore, kXR_signIgnore, kXR_signIgnore, kXR_signNeeded,
kXR_endsess, kXR_signIgnore, kXR_signIgnore, kXR_signNeeded, kXR_signNeeded,
kXR_fattr, kXR_signNeeded, kXR_signNeeded, kXR_signNeeded, kXR_signNeeded,
kXR_getfile, kXR_signNeeded, kXR_signNeeded, kXR_signNeeded, kXR_signNeeded,
kXR_locate, kXR_signIgnore, kXR_signIgnore, kXR_signIgnore, kXR_signNeeded,
kXR_login, kXR_signIgnore, kXR_signIgnore, kXR_signIgnore, kXR_signIgnore,
Expand Down

0 comments on commit 2d450fc

Please sign in to comment.