X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=store.cc;h=bfeb18a77ceadcaaeca8f555283430847a4fa24e;hp=720d3bb7da8a6abd4e7e42be35c0bb7c733660e5;hb=dd553bb0b2ac2fe7a1904d2f2670f37e3bb25ae6;hpb=0dfc70e01ddb7d2bce0db03d5364c0bd3a2bb308 diff --git a/store.cc b/store.cc index 720d3bb..bfeb18a 100644 --- a/store.cc +++ b/store.cc @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -42,6 +43,7 @@ #include "store.h" #include "ref.h" +#include "util.h" using std::max; using std::list; @@ -54,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)