summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
AgeCommit message (Expand)AuthorFilesLines
2015-12-27FileFd: Add a buffered writing modeJulian Andres Klode1-0/+152
2015-12-27FildFd: Introduce a Flush() function and call it from Close()Julian Andres Klode1-0/+15
2015-12-27FileFdPrivate: Add getter and setter for fieldsJulian Andres Klode1-9/+42
2015-12-27fileutl: simple_buffer: Add write() and full() methodsJulian Andres Klode1-0/+11
2015-12-27fileutl: simple_buffer: Mark accessors as constJulian Andres Klode1-2/+3
2015-12-27FileFdPrivate: Extract SimpleBuffer and mark it as hiddenJulian Andres Klode1-21/+24
2015-12-26Refactor InternalReadLine to not unroll Size == 0 caseJulian Andres Klode1-5/+4
2015-12-26Change InternalReadLine to always use buffer.read() return valueJulian Andres Klode1-12/+8
2015-12-26Get rid of memmove() in our read bufferingJulian Andres Klode1-76/+57
2015-12-26Use a hardcoded buffer size of 4096 to fix performanceJulian Andres Klode1-4/+2
2015-12-24Mark all FileFdPrivate classes as hidden1.1.6Julian Andres Klode1-6/+6
2015-12-23fix new[] vs delete mismatch introduced by b3db9d81David Kalnischkies1-7/+7
2015-12-23use a dynamic buffer for ReadLineDavid Kalnischkies1-15/+22
2015-12-23implement a buffer system for FileFd::ReadLineDavid Kalnischkies1-27/+140
2015-12-22parse xz-compression level from configurationDavid Kalnischkies1-2/+28
2015-12-22follow dpkg and xz and use CRC64 for xz compressionDavid Kalnischkies1-1/+1
2015-12-22shuffle compressor-specific code into private subclassesDavid Kalnischkies1-635/+686
2015-12-19Do not try to read in FileFd::Read() if Size is 0Julian Andres Klode1-3/+2
2015-12-19Do nothing in FileFd::Write() if Size is 0Julian Andres Klode1-7/+5
2015-12-19CopyFile: avoid failing on EOF on some systemsPino Toscano1-1/+1
2015-12-19CopyFile: fix BufSize to a sane valuePino Toscano1-2/+2
2015-11-28disable privilege-drop verification by default as fakeroot trips over itDavid Kalnischkies1-42/+60
2015-11-28show the group we failed to drop via setgroupsDavid Kalnischkies1-6/+11
2015-11-27add messages to our deprecation warnings in libaptDavid Kalnischkies1-1/+1
2015-11-19do not use _apt for file/copy sources if it isn't world-accessibleDavid Kalnischkies1-1/+1
2015-11-04wrap every unlink call to check for != /dev/nullDavid Kalnischkies1-4/+18
2015-11-04ensure FileFd doesn't try to open /dev/null as atomic and coDavid Kalnischkies1-6/+10
2015-09-14avoid using global PendingError to avoid failing too often too soonDavid Kalnischkies1-1/+1
2015-09-14copy ReadWrite-error to the bottom to make clang happyDavid Kalnischkies1-1/+4
2015-09-14implement CopyFile without using FileFd::Size()David Kalnischkies1-13/+7
2015-09-01improve CheckDropPrivsMustBeDisabled furtherDavid Kalnischkies1-4/+6
2015-08-31ignore for _apt inaccessible TMPDIR in pkgAcqChangelogDavid Kalnischkies1-3/+28
2015-08-27Always close compressed files in FileFdJulian Andres Klode1-6/+7
2015-08-13Use setresuid() and setresgid() where availableJulian Andres Klode1-3/+13
2015-08-13Deprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>Julian Andres Klode1-3/+4
2015-08-11ExecFork: Use /proc/self/fd to determine which files to closeJulian Andres Klode1-5/+19
2015-08-10elimate duplicated code in pkgIndexFile subclassesDavid Kalnischkies1-8/+7
2015-08-10make all d-pointer * const pointersDavid Kalnischkies1-0/+19
2015-05-22Merge branch 'debian/sid' into debian/experimentalMichael Vogt1-1/+2
2015-04-28Move sysconf(_SC_OPEN_MAX); out of the for() loop to avoid unneeded syscallsMichael Vogt1-1/+2
2015-04-19ensure lists/ files have correct permissions after apt-cdrom addDavid Kalnischkies1-0/+19
2014-10-20test if TMPDIR is accessible before usingDavid Kalnischkies1-2/+4
2014-10-15set PR_SET_NO_NEW_PRIVS even if sandbox is disabledDavid Kalnischkies1-6/+6
2014-10-13Fix backward compatiblity of the new pkgAcquireMethod::DropPrivsOrDie()Michael Vogt1-1/+6
2014-10-08Merge remote-tracking branch 'mvo/feature/acq-trans' into debian/experimentalMichael Vogt1-1/+1
2014-10-07set PR_SET_NO_NEW_PRIVS also if run as non-rootDavid Kalnischkies1-11/+16
2014-10-07fix foldmarkers in fileutl.ccDavid Kalnischkies1-21/+14
2014-10-07Ignore EINVAL from prctl(PR_SET_NO_NEW_PRIVS)Michael Vogt1-2/+3
2014-10-07Rename DropPrivs() to DropPrivileges()Michael Vogt1-1/+1
2014-09-29Adjust DestFile in ReverifyAfterIMS() to not include compr ExtensionMichael Vogt1-1/+1