mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
STABLE14-call-bzero-in-convertvolumeinfo-with-correct-size-for-dotreadonly-20060731
FIXES 36442 and slipstream in bzero() killing (cherry picked from commit 8d2dbc51f40e61cbe6157c910dff18606cf84282)
This commit is contained in:
parent
8662becccc
commit
0f94fd9eb5
@ -1468,7 +1468,7 @@ convertVolumeInfo(fdr, fdw, vid)
|
||||
* the old RW volume around */
|
||||
p = strrchr(vd.name, '.');
|
||||
if (p && !strcmp(p, ".readonly")) {
|
||||
bzero(p, 8);
|
||||
memset(p, 0, 9);
|
||||
}
|
||||
if (write(fdw, &vd, sizeof(struct VolumeDiskData)) !=
|
||||
sizeof(struct VolumeDiskData)) {
|
||||
@ -1582,7 +1582,7 @@ namei_ConvertROtoRWvolume(IHandle_t * h, afs_uint32 vid)
|
||||
* proceed.
|
||||
*/
|
||||
|
||||
bzero(&t_ih, sizeof(t_ih));
|
||||
memset(&t_ih, 0, sizeof(t_ih));
|
||||
t_ih.ih_dev = h->ih_dev;
|
||||
t_ih.ih_vid = h->ih_vid;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user