mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
vol: fix _namei_examine_reg DELETE_ZLC usage
replace 'i' with 'dirl' and assign the new variable a value before using it. Change-Id: Ia93b6c75154b6f2a9238f0e9c2881d6c79c36540 Reviewed-on: http://gerrit.openafs.org/3701 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
270e5c0178
commit
8bb5e29177
@ -1908,7 +1908,7 @@ _namei_examine_special(char * path1,
|
||||
/**
|
||||
* examine a namei file.
|
||||
*
|
||||
* @param[in] path1 volume special directory path
|
||||
* @param[in] path3 volume special directory path
|
||||
* @param[in] dname directory entry name
|
||||
* @param[in] myIH inode handle to volume directory
|
||||
* @param[in] linkHandle namei link count fd handle.
|
||||
@ -1948,7 +1948,7 @@ _namei_examine_reg(char * path3,
|
||||
int ret = 0;
|
||||
struct ViceInodeInfo info;
|
||||
#ifdef DELETE_ZLC
|
||||
int i; /* Windows-only (one level hash dir) */
|
||||
int dirl; /* Windows-only (one level hash dir) */
|
||||
#endif
|
||||
|
||||
if (DecodeInode(path3, dname, &info, myIH->ih_vid) < 0) {
|
||||
@ -1965,7 +1965,8 @@ _namei_examine_reg(char * path3,
|
||||
/* defer -- the AddToZLCDeleteList() interface is not MT-safe */
|
||||
ret = -2;
|
||||
#else /* !AFS_SALSRV_ENV */
|
||||
AddToZLCDeleteList((char)i, dname);
|
||||
dirl = path3[strlen(path3)-1];
|
||||
AddToZLCDeleteList((char)dirl, dname);
|
||||
#endif /* !AFS_SALSRV_ENV */
|
||||
#else /* !DELETE_ZLC */
|
||||
Log("Found 0 link count file %s" OS_DIRSEP "%s.\n", path3,
|
||||
|
Loading…
Reference in New Issue
Block a user