summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
AgeCommit message (Expand)AuthorFilesLines
2016-11-11add TMP/TEMP/TEMPDIR to the TMPDIR DropPrivileges danceDavid Kalnischkies1-9/+20
2016-11-09reset HOME, USER(NAME), TMPDIR & SHELL in DropPrivilegesDavid Kalnischkies1-0/+20
2016-10-04Do not read stderr from proxy autodetection scriptsJulian Andres Klode1-1/+7
2016-08-12fileutl: empty file support: Avoid fstat() on -1 fd and check resultJulian Andres Klode1-2/+3
2016-08-10implement socks5h proxy support for http methodDavid Kalnischkies1-0/+31
2016-07-29if the FileFd failed already following calls should fail, tooDavid Kalnischkies1-8/+10
2016-07-27(error) va_list 'args' was opened but not closed by va_end()David Kalnischkies1-10/+8
2016-07-23call flush on the wrapped writebuffered FileFdDavid Kalnischkies1-2/+1
2016-07-19ensure Cnf::FindFile doesn't return files below /dev/nullDavid Kalnischkies1-0/+19
2016-07-06don't change owner/perms/times through file:// symlinksDavid Kalnischkies1-1/+4
2016-07-05give a descriptive error for pipe tries with 'false'David Kalnischkies1-0/+3
2016-06-29don't do atomic overrides with failed filesDavid Kalnischkies1-1/+1
2016-06-10don't leak an FD in lz4 (de)compressionDavid Kalnischkies1-1/+6
2016-06-10do not hang on piped input in PipedFileFdPrivateDavid Kalnischkies1-0/+5
2016-04-28FileFd: avoid further writing if file failedDavid Kalnischkies1-9/+13
2016-04-03consistently add APT_OVERRIDE as method markerDavid Kalnischkies1-70/+70
2016-03-06Fix lzma write support to handle "try again" caseColin Watson1-4/+25
2016-02-10Set seekpos to 0 after reopening files in Seek()Julian Andres Klode1-0/+1
2016-02-04Use some semantically more correct buffer operationsJulian Andres Klode1-1/+1
2016-02-04Correctly report write errors when flushing buffered writerJulian Andres Klode1-1/+1
2016-02-01Do not buffer writes larger than the buffer if possibleJulian Andres Klode1-0/+6
2016-02-01BufferedWriteFileFdPrivate: Simplify InternalWrite()Julian Andres Klode1-9/+3
2016-02-01simple_buffer::write: Use free() instead of maxsize - size()Julian Andres Klode1-3/+3
2016-01-30fix "Mismatched free() / delete / delete []" in simple_bufferStefan Bühler1-1/+1
2016-01-07CopyFile: Use 64 * 1024 instead of 64000 as buffer sizeJulian Andres Klode1-7/+9
2016-01-07FileFd: (native) LZ4 supportJulian Andres Klode1-0/+160
2016-01-03simple_compressor: Provide some accessors for end and freeJulian Andres Klode1-0/+3
2016-01-03simple_buffer: Allow buffer size to changeJulian Andres Klode1-2/+18
2015-12-28BufferedFileFdPrivate: Make InternalFlush() save against errorsJulian Andres Klode1-8/+8
2015-12-28BufferedWriter: flushing: Check for written < size instead of <=Julian Andres Klode1-3/+1
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