git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d07fb82
)
libafs: allow bkg daemon requests without creds
author
Michael Meffie
<mmeffie@sinenomine.net>
Thu, 6 Mar 2014 15:50:56 +0000 (10:50 -0500)
committer
D Brashear
<shadow@your-file-system.com>
Tue, 25 Mar 2014 16:49:34 +0000 (09:49 -0700)
Make the creds argument optional for background daemon
requests which do not need to pass a cred.
Change-Id: Ic4ac69d746e8a84993069e37bdd0440622febd70
Reviewed-on: http://gerrit.openafs.org/10880
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>
src/afs/afs_daemons.c
patch
|
blob
|
history
diff --git
a/src/afs/afs_daemons.c
b/src/afs/afs_daemons.c
index
0aab8c9
..
e50431f
100644
(file)
--- a/
src/afs/afs_daemons.c
+++ b/
src/afs/afs_daemons.c
@@
-702,7
+702,9
@@
afs_BQueue(short aopcode, struct vcache *avc,
tb->opcode = aopcode;
tb->vc = avc;
tb->cred = acred;
- crhold(tb->cred);
+ if (tb->cred) {
+ crhold(tb->cred);
+ }
if (avc) {
AFS_FAST_HOLD(avc);
}