summaryrefslogtreecommitdiff
path: root/apt-private/private-download.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-download.cc')
-rw-r--r--apt-private/private-download.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc
index dcb604f2a..40312d0c8 100644
--- a/apt-private/private-download.cc
+++ b/apt-private/private-download.cc
@@ -27,6 +27,7 @@
#include <fcntl.h>
#include <sys/vfs.h>
#include <sys/statvfs.h>
+#include <sys/stat.h>
#include <errno.h>
#include <apti18n.h>
@@ -224,6 +225,7 @@ bool DoDownload(CommandLine &CmdL)
std::ifstream src((*I)->DestFile.c_str(), std::ios::binary);
std::ofstream dst(filename.c_str(), std::ios::binary);
dst << src.rdbuf();
+ chmod(filename.c_str(), 0644);
}
}
return Failed == false;