summaryrefslogtreecommitdiff
path: root/third_party/heimdal/lib/krb5/fcache.c
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-03-09 09:00:02 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-03-31 01:48:30 +0000
commita87aae5292d1c43b987dcfa77a51b6aa5aa3e004 (patch)
treec1af6a7ddb6a196d4af09cd086815be51a709365 /third_party/heimdal/lib/krb5/fcache.c
parentf448a1649cf4af11f1ceba55ec62e9b2a3db24f1 (diff)
downloadsamba-a87aae5292d1c43b987dcfa77a51b6aa5aa3e004.tar.gz
third_party/heimdal: Import lorikeet-heimdal-202303200103 (commit 2ee541b5e963f7cffb1ec4acd1a8cc45426a9f28)
NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'third_party/heimdal/lib/krb5/fcache.c')
-rw-r--r--third_party/heimdal/lib/krb5/fcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/heimdal/lib/krb5/fcache.c b/third_party/heimdal/lib/krb5/fcache.c
index 30dff35893b..20c335db3be 100644
--- a/third_party/heimdal/lib/krb5/fcache.c
+++ b/third_party/heimdal/lib/krb5/fcache.c
@@ -581,7 +581,7 @@ again:
* locations on tmpfs "run" directories. But we don't know here
* that this is the case. Thus: no hard-links, no symlinks.
*/
- if (sb2.st_nlink != 1) {
+ if (sb2.st_nlink > 1) {
krb5_set_error_message(context, EPERM, N_("Refuses to open hardlinks for caches FILE:%s", ""), filename);
close(fd);
return EPERM;