-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support wait-for-session in qrexec-client #41
Conversation
958b752
to
4993389
Compare
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
==========================================
+ Coverage 73.70% 74.14% +0.44%
==========================================
Files 41 41
Lines 6221 6300 +79
Branches 459 474 +15
==========================================
+ Hits 4585 4671 +86
+ Misses 1394 1375 -19
- Partials 242 254 +12
Continue to review full report at Codecov.
|
4993389
to
c4b1cd4
Compare
libqrexec/exec.c
Outdated
goto err; | ||
} | ||
} else { | ||
cmd->service_name = strdup(cmd->service_descriptor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd->service_name = strdup(cmd->service_descriptor); | |
cmd->service_name = strndup(cmd->service_descriptor, end - start); |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do strndup(start, end - start)
, same as for cmd->service_descriptor
.
Clean up qrexec_parsed_command to make the code simpler: allocate more strings and store NUL-terminated parts.
Add qubes.WaitForSession to dom0, to wait until qubes-guid becomes available for a given domain. This will be useful for RPC calls that require GUI (currently qubes.WindowIconUpdater).
c4b1cd4
to
c764187
Compare
c764187
to
7f6d27b
Compare
Added to dom0 in QubesOS/qubes-core-qrexec#41.
No description provided.