mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
weft-pack uninstall moved earlier app data only when the package manifest could be read and declared an app-data capability, and only when the store path was spelled exactly as the user store; otherwise it removed the package directory with the data in it. A directory left holding only data by an earlier weft-appd, which has no manifest, was deleted that way. A data directory is now never removed with a package. In the user store, recognised by its real location rather than its spelling, it is moved when the package declares app data or its manifest cannot be read; in every other case uninstall stops and changes nothing. Tests cover a directory holding only data, a store reached through '..', a symbolically linked home, an app without the capability and another store. weft-appd reports both locations when a move fails with an I/O error and creates the data directory with mode 0700 instead of tightening it afterwards. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||