[Bugs] [Bug 1363613] Crash of glusterd when force-creating geo-replication
bugzilla at redhat.com
bugzilla at redhat.com
Wed Aug 3 15:30:38 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1363613
--- Comment #4 from Mrten <bugzilla at ii.nl> ---
I think I got it: slave_vol_config struct is a
struct slave_vol_config {
char old_slvhost[_POSIX_HOST_NAME_MAX+1];
char old_slvuser[_POSIX_LOGIN_NAME_MAX];
unsigned old_slvidx;
char slave_voluuid[GF_UUID_BUF_SIZE];
};
and _POSIX_LOGIN_NAME_MAX is ... 9.
my login name is 14 characters long, so, crash.
I'd suggest using LOGIN_NAME_MAX instead of _POSIX_LOGIN_NAME_MAX, which is 256
long.
Don't switch the _POSIX_HOST_NAME_MAX to HOST_NAME_MAX though, that's 255 vs
64.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list