X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=store.cc;h=bfeb18a77ceadcaaeca8f555283430847a4fa24e;hp=9e7fc99530975277b75ae73edd4d5f33a222250d;hb=dd553bb0b2ac2fe7a1904d2f2670f37e3bb25ae6;hpb=5f2e50c2ad75043142dc1812fe19dbd7ad86488c diff --git a/store.cc b/store.cc index 9e7fc99..bfeb18a 100644 --- a/store.cc +++ b/store.cc @@ -43,6 +43,7 @@ #include "store.h" #include "ref.h" +#include "util.h" using std::max; using std::list; @@ -55,16 +56,6 @@ using std::string; const char *filter_program = "bzip2 -c"; const char *filter_extension = ".bz2"; -static void cloexec(int fd) -{ - long flags = fcntl(fd, F_GETFD); - - if (flags < 0) - return; - - fcntl(fd, F_SETFD, flags | FD_CLOEXEC); -} - Tarfile::Tarfile(RemoteFile *file, const string &segment) : size(0), segment_name(segment)