diff options
author | Uri Lublin <uril@redhat.com> | 2013-11-05 18:45:59 +0200 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2013-11-13 10:39:47 +0200 |
commit | 066f614cee28609176cb24c594e034e7a1237220 (patch) | |
tree | cb7d7ca083b7314cd7ae77a03e8421666bef2459 /vdagent | |
parent | 71193f658131d31b28b6d9afdd385111bc32377b (diff) |
vdagent: file-xfer: make user desktop the target directory
Before, the target directory was a public one (for all users),
as file creation was not done with user privileges.
Now that the file is created with user privileges, it's
better to make the user desktop the target directory.
Diffstat (limited to 'vdagent')
-rw-r--r-- | vdagent/file_xfer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp index 2a6480a..eb2119a 100644 --- a/vdagent/file_xfer.cpp +++ b/vdagent/file_xfer.cpp @@ -60,7 +60,7 @@ void FileXfer::handle_start(VDAgentFileXferStartMessage* start, return; } - if (FAILED(SHGetFolderPathA(NULL, CSIDL_COMMON_DESKTOPDIRECTORY | CSIDL_FLAG_CREATE, NULL, + if (FAILED(SHGetFolderPathA(NULL, CSIDL_DESKTOPDIRECTORY | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, file_path))) { vd_printf("failed getting desktop path"); return; |