summaryrefslogtreecommitdiff
path: root/net-libs/xrootd/files/xrootd-5.6.2-authfile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/xrootd/files/xrootd-5.6.2-authfile.patch')
-rw-r--r--net-libs/xrootd/files/xrootd-5.6.2-authfile.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-libs/xrootd/files/xrootd-5.6.2-authfile.patch b/net-libs/xrootd/files/xrootd-5.6.2-authfile.patch
new file mode 100644
index 000000000000..190fddef9781
--- /dev/null
+++ b/net-libs/xrootd/files/xrootd-5.6.2-authfile.patch
@@ -0,0 +1,13 @@
+Fix compound id parsing for authfile.
+
+--- a/src/XrdAcc/XrdAccAuthFile.cc
++++ b/src/XrdAcc/XrdAccAuthFile.cc
+@@ -161,7 +161,7 @@ char XrdAccAuthFile::getID(char **id)
+ // two character specification but only validate the first to be backward
+ // compatible.
+ //
+- if (strlen(pp) <= 2 || !index("ghoru", *pp))
++ if (strlen(pp) > 2 || !index("ghoru", *pp))
+ {Eroute->Emsg("AuthFile", "Invalid ID sprecifier -", pp);
+ flags = (DBflags)(flags | dbError);
+ return 0;