Commit Graph

3 Commits

Author SHA1 Message Date
Frediano Ziglio
5f0f3b590a Fix indentation
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-02-27 17:06:53 +00:00
Uri Lublin
8a28f878b9 vdagent: as_user: reorder initialization to make mingw-gcc happy
Fixes compiler warning that starts with:

In file included from vdagent/as_user.cpp:19:0:
vdagent/as_user.h: In constructor 'AsUser::AsUser(DWORD)':
vdagent/as_user.h:35:10: warning: 'AsUser::_started' will be initialized after [-Wreorder]
     bool _started;
2014-12-30 17:17:24 +02:00
Uri Lublin
750a8bab40 vdagent: add as_user to run tasks with user privileges
The class calls Impersonate upon begin(), and Revert
upon end() or destruction.

The user is the current user that is logged in.

 create mode 100644 vdagent/as_user.cpp
 create mode 100644 vdagent/as_user.h
2013-11-13 10:24:59 +02:00