summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cdromutl.cc
AgeCommit message (Collapse)Author
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode
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.
2017-06-26ident a CD without changing directoryDavid Kalnischkies
2015-08-10fix memory leaks reported by -fsanitizeDavid Kalnischkies
Various small leaks here and there. Nothing particularily big, but still good to fix. Found by the sanitizers while running our testcases. Reported-By: gcc -fsanitize Git-Dch: Ignore
2015-04-10reimplement the last uses of sprintfDavid Kalnischkies
Working with strings c-style is complicated and error-prune, so by converting to c++ style we gain some simplicity and avoid buffer overflows by later extensions. Git-Dch: Ignore
2014-03-13support very long mtab entries in mountpoint discoveryDavid Kalnischkies
Old code limited lines to 250 characters which is probably enough for everybody, but who knows… It also takes care of device nodes which start with the same prefix.
2014-03-13no error for non-existing mountpoints in MountCdromDavid Kalnischkies
The mountpoint might be auto-generated by the mount command so pushing an error on the stack will confuse the following code and let it believe an unrecoverable error occured while potentially everything is okay. Same goes for umount as a non-existing mountpoint is by definition not mounted.
2014-03-13if mountpoint has a ".disk" directory it is mountedDavid Kalnischkies
Checking that parent-directory of mountpoint and mountpoint are on different devices is fine most of the time, but is too restrictive for our testcases and there shouldn't be anything wrong with 'normal' users copying disk-contents around either if they want to. We check for the existance of the ".disk/" directory now as this will not be present if the disk isn't 'mounted'. Disks doesn't need to have such a directory through, so for those we fall back to the old way of detecting mounted or not mounted.
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies
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)
2014-02-22Fix typos in documentation (codespell)Michael Vogt
2013-07-25rework the code in cdromutl.cc to make coverity (more) happyMichael Vogt
2011-09-19do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies
2011-09-13merge with debian/experimentalDavid Kalnischkies
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2011-07-26* apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt
- add new DeEscapeString() similar to DeQuoteQuotedWord but unescape charackter escapes like \0XXX and \xXX (plus add test)
2011-07-25* apt-pkg/contrib/cdromutl.cc:Michael Vogt
- fix escape problem when looking for the mounted devices
2011-04-16fix a bunch of cppcheck warnings/errors based on a patch byDavid Kalnischkies
Niels Thykier, thanks! (Closes: #622805)
2011-03-09apt-pkg/contrib/cdromutl.{cc,h}: return string for mountpath; ↵Michael Vogt
apt-pkg/cdrom.cc: use string
2011-03-04apt-pkg/contrib/cdromutl.{cc,h}: add FindMountPointForDevice helper; ↵Michael Vogt
apt-pkg/cdrom.cc: deal with missing FSTAB_DIR
2010-09-10apt-pkg/contrib/cdromutl.cc: do not take Buf.f_bfree into account on ↵Michael Vogt
writable media
2010-09-10apt-pkg/contrib/cdromutl.cc: style fixes (thanks to David for his code-review)Michael Vogt
2010-09-10* apt-pkg/contrib/cdromutl.cc:Michael Vogt
- if apt-cdrom is used on writable media (like usb-sticks), do not use the root directory to identify the medium (as all changes there change the ident id). Use the .disk directory instead
2010-01-22* apt-pkg/contrib/cdromutl.cc:Michael Vogt
- fix UnmountCdrom() fails, give it a bit more time and try the umount again
2009-07-22* methods/cdrom.cc:Michael Vogt
- add Acquire::Cdrom::mount "apt-udev-auto" magic to allow dynamically finding the cdrom device * apt-pkg/contrib/cdromutl.{h,cc}: - support additional (optional) DeviceName parameter for MountCdrom()
2008-08-05fix various -Wall warningsMichael Vogt
2007-06-08* remove all the remaining #pragma implementationMichael Vogt
2004-09-20Join with aliencodeArch Librarian
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20HP-UX fixesArch Librarian
Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes
2004-09-20More Solaris fixesArch Librarian
Author: jgg Date: 1999-12-10 06:30:42 GMT More Solaris fixes
2004-09-20Added castArch Librarian
Author: jgg Date: 1999-08-30 07:48:04 GMT Added cast
2004-09-20Minor cleanups, fix for checksum lowercase bugArch Librarian
Author: jgg Date: 1999-07-26 17:46:07 GMT Minor cleanups, fix for checksum lowercase bug
2004-09-20CDROM debug optionArch Librarian
Author: jgg Date: 1999-07-02 22:20:50 GMT CDROM debug option
2004-09-20Changed CD ident rountine to not use inodesArch Librarian
Author: jgg Date: 1999-06-05 03:54:29 GMT Changed CD ident rountine to not use inodes
2004-09-20Fixed sparc compile warningArch Librarian
Author: jgg Date: 1999-04-20 05:11:17 GMT Fixed sparc compile warning
2004-09-20Working apt-get source build stuffArch Librarian
Author: jgg Date: 1999-04-20 05:02:09 GMT Working apt-get source build stuff
2004-09-20CDrom fixesArch Librarian
Author: jgg Date: 1999-04-03 01:05:24 GMT CDrom fixes
2004-09-20CDROM patches from bluehornArch Librarian
Author: jgg Date: 1999-03-28 01:37:26 GMT CDROM patches from bluehorn
2004-09-20CDROM stuff from apt-cdromArch Librarian
Author: jgg Date: 1998-11-29 01:19:27 GMT CDROM stuff from apt-cdrom