mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-09 02:37:23 +01:00
If the path is still outside /mnt/ after all the previous checks and enforces have been applied, overwrite the path to "/mnt/". This is usefull in the following scenario: - "/mnt/tmp" is a soft link to "/tmp" - $path is pushed from the web gui as "/" - $dirpath is pushed from the web gui as "tmp" The init script prepends "/mnt/", the $path becomes "/mnt/tmp". Further, the smb.conf would receive "path = /mnt/tmp" and samba would export for share "/tmp". A while-loop (that always prepends "/mnt/" to $(readlink -f $path) if it does not start with "/mnt") would not prevent this case exactly because the soft link and the target directory have the same name, thus the loop would never end. |
||
|---|---|---|
| .. | ||
| files | ||
| patches | ||
| Config.in | ||
| Makefile | ||