summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
db7dde3)
install_service() calls edit_service() with a null username, causing
well_known_username() to segfault.
Thanks Czenda Czendov.
}
const TCHAR *well_known_username(const TCHAR *username) {
}
const TCHAR *well_known_username(const TCHAR *username) {
+ if (! username) return NSSM_LOCALSYSTEM_ACCOUNT;
if (str_equiv(username, NSSM_LOCALSYSTEM_ACCOUNT)) return NSSM_LOCALSYSTEM_ACCOUNT;
SID *sid;
int r = username_sid(username, &sid);
if (str_equiv(username, NSSM_LOCALSYSTEM_ACCOUNT)) return NSSM_LOCALSYSTEM_ACCOUNT;
SID *sid;
int r = username_sid(username, &sid);