summaryrefslogtreecommitdiff
path: root/methods/ftp.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete RCS keywordsGuillem Jover2018-05-071-2/+1
| | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* report transient errors as transient errorsDavid Kalnischkies2017-12-131-2/+2
| | | | | | | | | | | | The Fail method for acquire methods has a boolean parameter indicating the transient-nature of a reported error. The problem with this is that Fail is called very late at a point where it is no longer easily identifiable if an error is indeed transient or not, so some calls were and some weren't and the acquire system would later mostly ignore the transient flag and guess by using the FailReason instead. Introducing a tri-state enum we can pass the information about fatal or transient errors through the callstack to generate the correct fails.
* allow the auth.conf to be root:root ownedDavid Kalnischkies2017-07-261-1/+1
| | | | | | | | | | | Opening the file before we drop privileges in the methods allows us to avoid chowning in the acquire main process which can apply to the wrong file (imagine Binary scoped settings) and surprises users as their permission setup is overridden. There are no security benefits as the file is open, so an evil method could as before read the contents of the file, but it isn't worse than before and we avoid permission problems in this setup.
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-1/+1
| | | | | | | | | | | | | This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
* methods: connect: Switch from int fds to new MethodFdJulian Andres Klode2017-06-281-2/+3
| | | | | | | | Use std::unique_ptr<MethodFd> everywhere we used an integer-based file descriptor before. This allows us to implement stuff like TLS support easily. Gbp-Dch: ignore
* methods: connect: Change PkgAcqMethod to aptMethodJulian Andres Klode2017-06-281-1/+1
| | | | | | | This will allow us to access ConfigFind() and stuff which makes it possible for us to implement TLS support. Gbp-Dch: ignore
* use std::locale::global instead of setlocaleDavid Kalnischkies2016-05-281-1/+0
| | | | | | We use a wild mixture of C and C++ ways of generating output, so having a consistent world-view in both styles sounds like a good idea and should help in preventing regressions.
* apply various suggestions made by cppcheckDavid Kalnischkies2015-11-051-1/+1
| | | | | Reported-By: cppcheck Git-Dch: Ignore
* allow acquire method specific options via Binary scopeDavid Kalnischkies2015-11-051-1/+2
| | | | | | | | Allows users who know what they are getting themselves into with this trick to e.g. disable privilege dropping for e.g. file:// until they can fix up the permissions on those repositories. It helps also the test framework and people with a similar setup (= me) to run in less modified environments.
* add c++11 override marker to overridden methodsDavid Kalnischkies2015-08-101-2/+4
| | | | | | | | | C++11 adds the 'override' specifier to mark that a method is overriding a base class method and error out if not. We hide it in the APT_OVERRIDE macro to ensure that we keep compiling in pre-c++11 standards. Reported-By: clang-modernize -add-override -override-macros Git-Dch: Ignore
* Send "Fail-Reason: MaximumSizeExceeded" from the methodMichael Vogt2014-10-071-1/+2
| | | | | Communicate the fail reason from the methods to the parent and Rename() failed files.
* make expected-size a maximum-size check as this is what we want at this pointMichael Vogt2014-10-071-1/+1
|
* add ftp expected size checkMichael Vogt2014-10-071-1/+1
|
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-1/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-0/+2
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-1/+1
|
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-191-0/+4
|
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-5/+5
|
* Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-2/+2
| | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* methods/ftp.h: Handle different logins are on the same server (Closes: #586904).Julian Andres Klode2010-06-241-1/+1
|
* More SHA-1 prepArch Librarian2004-09-201-3/+3
| | | | | | Author: jgg Date: 2001-03-06 07:15:29 GMT More SHA-1 prep
* Join with aliencodeArch Librarian2004-09-201-4/+14
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* Wow it worksArch Librarian2004-09-201-4/+25
| | | | | | Author: jgg Date: 1999-03-15 07:20:41 GMT Wow it works
* First draftArch Librarian2004-09-201-0/+51
Author: jgg Date: 1999-03-15 06:00:59 GMT First draft