-
- Downloads
pv-mtree: Give a clearer error message if unable to chmod
If we can't chmod the file, we should say what the current owner and permissions look like, to assist debugging. In particular, this is likely to happen on NTFS or when operating on a directory owned by a different user. For example, if the filesystem is owned by root (steam-runtime#544) we might say: Unable to change mode of ... from 0777 (owner: "root", group: "root", non-member) to 0644: ... or if the file is owned by the current user but the filesystem does not allow chmod anyway (steam-runtime#606) we might say: Unable to change mode of ... from 0755 (owner: current user, group: "users") to 0644: ... Helps: https://github.com/ValveSoftware/steam-runtime/issues/434 Helps: https://github.com/ValveSoftware/steam-runtime/issues/460 Helps: https://github.com/ValveSoftware/steam-runtime/issues/477 Helps: https://github.com/ValveSoftware/steam-runtime/issues/491 Helps: https://github.com/ValveSoftware/steam-runtime/issues/544 Helps: https://github.com/ValveSoftware/steam-runtime/issues/606 Signed-off-by:Simon McVittie <smcv@collabora.com>
parent
18009fcd
Showing
- pressure-vessel/mtree.c 22 additions, 5 deletionspressure-vessel/mtree.c
- pressure-vessel/utils.c 87 additions, 0 deletionspressure-vessel/utils.c
- pressure-vessel/utils.h 3 additions, 0 deletionspressure-vessel/utils.h
- tests/pressure-vessel/utils.c 43 additions, 0 deletionstests/pressure-vessel/utils.c
Loading
Please register or sign in to comment