summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cdromutl.cc
AgeCommit message (Collapse)AuthorFilesLines
2018-05-07Remove obsolete RCS keywordsGuillem Jover1-1/+0
Prompted-by: Jakub Wilk <jwilk@debian.org>
2017-12-13avoid some useless casts reported by -Wuseless-castDavid Kalnischkies1-19/+14
The casts are useless, but the reports show some where we can actually improve the code by replacing them with better alternatives like converting whatever int type into a string instead of casting to a specific one which might in the future be too small. Reported-By: gcc -Wuseless-cast
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode1-7/+7
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 Kalnischkies1-23/+23
2015-08-10fix memory leaks reported by -fsanitizeDavid Kalnischkies1-0/+2
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 Kalnischkies1-15/+16
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 Kalnischkies1-25/+23
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 Kalnischkies1-8/+20
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 Kalnischkies1-2/+7
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 Kalnischkies1-1/+4
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 Vogt1-2/+2
2013-07-25rework the code in cdromutl.cc to make coverity (more) happyMichael Vogt1-1/+2
2011-09-19do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies1-0/+2
2011-09-13merge with debian/experimentalDavid Kalnischkies1-1/+3
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-2/+4
2011-07-26* apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt1-6/+2
- 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 Vogt1-1/+7
- fix escape problem when looking for the mounted devices
2011-04-16fix a bunch of cppcheck warnings/errors based on a patch byDavid Kalnischkies1-6/+10
Niels Thykier, thanks! (Closes: #622805)
2011-03-09apt-pkg/contrib/cdromutl.{cc,h}: return string for mountpath; ↵Michael Vogt1-3/+3
apt-pkg/cdrom.cc: use string
2011-03-04apt-pkg/contrib/cdromutl.{cc,h}: add FindMountPointForDevice helper; ↵Michael Vogt1-0/+31
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 Vogt1-4/+12
writable media
2010-09-10apt-pkg/contrib/cdromutl.cc: style fixes (thanks to David for his code-review)Michael Vogt1-3/+3
2010-09-10* apt-pkg/contrib/cdromutl.cc:Michael Vogt1-0/+10
- 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 Vogt1-21/+30
- fix UnmountCdrom() fails, give it a bit more time and try the umount again
2009-07-22* methods/cdrom.cc:Michael Vogt1-3/+10
- 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 Vogt1-1/+2
2007-06-08* remove all the remaining #pragma implementationMichael Vogt1-3/+0
2004-09-20Join with aliencodeArch Librarian1-6/+8
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20HP-UX fixesArch Librarian1-2/+2
Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes
2004-09-20More Solaris fixesArch Librarian1-4/+4
Author: jgg Date: 1999-12-10 06:30:42 GMT More Solaris fixes
2004-09-20Added castArch Librarian1-2/+2
Author: jgg Date: 1999-08-30 07:48:04 GMT Added cast
2004-09-20Minor cleanups, fix for checksum lowercase bugArch Librarian1-25/+3
Author: jgg Date: 1999-07-26 17:46:07 GMT Minor cleanups, fix for checksum lowercase bug
2004-09-20CDROM debug optionArch Librarian1-10/+15
Author: jgg Date: 1999-07-02 22:20:50 GMT CDROM debug option
2004-09-20Changed CD ident rountine to not use inodesArch Librarian1-5/+17
Author: jgg Date: 1999-06-05 03:54:29 GMT Changed CD ident rountine to not use inodes
2004-09-20Fixed sparc compile warningArch Librarian1-3/+3
Author: jgg Date: 1999-04-20 05:11:17 GMT Fixed sparc compile warning
2004-09-20Working apt-get source build stuffArch Librarian1-11/+3
Author: jgg Date: 1999-04-20 05:02:09 GMT Working apt-get source build stuff
2004-09-20CDrom fixesArch Librarian1-17/+52
Author: jgg Date: 1999-04-03 01:05:24 GMT CDrom fixes
2004-09-20CDROM patches from bluehornArch Librarian1-4/+27
Author: jgg Date: 1999-03-28 01:37:26 GMT CDROM patches from bluehorn
2004-09-20CDROM stuff from apt-cdromArch Librarian1-0/+157
Author: jgg Date: 1998-11-29 01:19:27 GMT CDROM stuff from apt-cdrom