New version of eject including a bunch of patches from ubuntu, including: - a new version of the finddev patch (adds documentation) - pumount support (for Utopia; blocks #91928) - several fixes for remote situations - check malloc return value for NULL Reproducible: Always Steps to Reproduce:
Created attachment 58442 [details, diff] make sure fd's are closed correctly
Created attachment 58443 [details, diff] make sure DEFAULTDEVICE starts with "/dev/"
Created attachment 58444 [details, diff] new version of finddev (includes documentation)
Created attachment 58445 [details, diff] make sure we can read fstab
Created attachment 58446 [details, diff] check the return value of malloc for NULL
Created attachment 58447 [details, diff] adds a don't unmount option
Created attachment 58448 [details, diff] adds pumount support (project utopia)
Created attachment 58449 [details, diff] make sure we have a proper regex
Created attachment 58450 [details] new ebuild
Would you like to have a look at Bug 62612 as well? :-)
sure, you can assign it to me if you like, but I'd like to put it in a revision on its own to get more testing. All the patches I've put here are fairly well tested.
fedora has a patch or two not included here ...
Comment #11: As you wish, assigned #62612 to you. If you
Comment #11: As you wish, assigned #62612 to you. If you´d like to maintain this ebuild, then you could add yourself to metadata.xml.
some notes ... - the close patch is pretty stupid/pointless - the malloc check is incomplete ... it's not the only malloc in eject.c - the regcomp check is incomplete ... it's not the only regcomp in eject.c - what's the point of the pumount patch ? added all but the pumount patch to eject-2.0.13-r2 after cleaning many of them up
pmount (and pumount) are policy wrappers around mount for removeable devices that aren't in fstab. Desktop programs use eject (ie. gnome-vfs). Lets say in this case you plug in a usb zip drive. gnome-vfs uses pmount to mount it, then the user wants to eject it. The user chooses eject in nautilus, which (through gnome-vfs) calls eject. When eject tries to umount the device, it will fail, so eject will be broken. The pumount tries at runtime to run pumount before umount. Nothing breaks if pumount isn't installed or fails (we don't check the exit status).
added to 2.0.13-r2