Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
da5cd33a
Commit
da5cd33a
authored
Feb 06, 2007
by
Roger Dingledine
Browse files
stop crashing on nt service install; but matt says still not right
svn:r9496
parent
4ba57f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/main.c
View file @
da5cd33a
...
...
@@ -2157,6 +2157,7 @@ nt_service_install(int argc, char **argv)
const
char
*
user_acct
=
GENSRV_USERACCT
;
int
i
;
SID_NAME_USE
sidUse
;
DWORD
zero
=
0
;
if
(
nt_service_loadlibrary
()
<
0
)
return
-
1
;
...
...
@@ -2179,8 +2180,10 @@ nt_service_install(int argc, char **argv)
if
(
service_fns
.
LookupAccountNameA_fn
(
NULL
,
// On this system
user_acct
,
NULL
,
0
,
// Don't care about the SID
NULL
,
0
,
// Don't care about the domain
NULL
,
&
zero
,
// Don't care about the SID
NULL
,
&
zero
,
// Don't care about the domain
&
sidUse
)
==
0
)
{
printf
(
"User
\"
%s
\"
doesn't seem to exist.
\n
"
,
user_acct
);
if
(
user_acct
!=
GENSRV_USERACCT
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment