Age | Commit message (Collapse) | Author |
|
Prompted-by: Jakub Wilk <jwilk@debian.org>
|
|
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
|
|
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.
|
|
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
- add new DeEscapeString() similar to DeQuoteQuotedWord but
unescape charackter escapes like \0XXX and \xXX (plus add test)
|
|
- fix escape problem when looking for the mounted devices
|
|
Niels Thykier, thanks! (Closes: #622805)
|
|
apt-pkg/cdrom.cc: use string
|
|
apt-pkg/cdrom.cc: deal with missing FSTAB_DIR
|
|
writable media
|
|
|
|
- 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
|
|
- fix UnmountCdrom() fails, give it a bit more time and try
the umount again
|
|
- 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()
|
|
|
|
|
|
Author: jgg
Date: 2001-02-20 07:03:16 GMT
Join with aliencode
|
|
Author: jgg
Date: 1999-12-10 23:40:29 GMT
HP-UX fixes
|
|
Author: jgg
Date: 1999-12-10 06:30:42 GMT
More Solaris fixes
|
|
Author: jgg
Date: 1999-08-30 07:48:04 GMT
Added cast
|
|
Author: jgg
Date: 1999-07-26 17:46:07 GMT
Minor cleanups, fix for checksum lowercase bug
|
|
Author: jgg
Date: 1999-07-02 22:20:50 GMT
CDROM debug option
|
|
Author: jgg
Date: 1999-06-05 03:54:29 GMT
Changed CD ident rountine to not use inodes
|
|
Author: jgg
Date: 1999-04-20 05:11:17 GMT
Fixed sparc compile warning
|
|
Author: jgg
Date: 1999-04-20 05:02:09 GMT
Working apt-get source build stuff
|
|
Author: jgg
Date: 1999-04-03 01:05:24 GMT
CDrom fixes
|
|
Author: jgg
Date: 1999-03-28 01:37:26 GMT
CDROM patches from bluehorn
|
|
Author: jgg
Date: 1998-11-29 01:19:27 GMT
CDROM stuff from apt-cdrom
|