FS#21971 - Be less stringent on read-only file checking
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Friday, 03 December 2010, 14:23 GMT
Last edited by Allan McRae (Allan) - Saturday, 16 February 2013, 01:19 GMT
Opened by Allan McRae (Allan) - Friday, 03 December 2010, 14:23 GMT
Last edited by Allan McRae (Allan) - Saturday, 16 February 2013, 01:19 GMT
|
Details
In "can_remove_file" in lib/libalpm/remove.c
/* If we fail write permissions due to a read-only filesystem, abort. * Assume all other possible failures are covered somewhere else */ We could skip that check for _folders_ that are in both the old and the new package as they do not need removed. Or at least it does not matter if they are failed to be removed as is shown later in remove.c... if(S_ISDIR(buf.st_mode)) { if(rmdir(file)) { /* this is okay, other packages are probably using it (like /usr) */ ... |
This task depends upon
Closed by Allan McRae (Allan)
Saturday, 16 February 2013, 01:19 GMT
Reason for closing: Fixed
Additional comments about closing: See also FS#30884
Saturday, 16 February 2013, 01:19 GMT
Reason for closing: Fixed
Additional comments about closing: See also
FS#20894where the /media/cd/ folder was read-only during an update due to a cd being mounted there. The /media/cd/ folder was in the updated package so did pacman did not need to abort due to it being read-only.FS#5887).FS#30884which specifically deals with read-only filesystems