mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +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. |
||
|---|---|---|
| .. | ||
| config-lfs.h | ||
| samba-nmbd.init | ||
| samba-smbd.init | ||
| samba.config | ||
| samba.init | ||
| smb.conf.template | ||