OberonCore
https://forum.oberoncore.ru/

#027 Respect Symlinks
https://forum.oberoncore.ru/viewtopic.php?f=134&t=6574
Страница 1 из 1

Автор:  Иван Денисов [ Понедельник, 02 Март, 2020 09:00 ]
Заголовок сообщения:  #027 Respect Symlinks

Антон внедрил "уважение" к символьным ссылкам в Linux версию Блэкбокса.
https://github.com/bbcb/bbcp/commit/e56 ... 285e4d0c89

Потестировать, как это работает на Linux, возможно из этого архива:
https://blackbox.oberon.org/unstable/de ... .23.tar.gz

В репозитории linux18 пакет обновил.

dev/docu_dev18 писал(а):
HostFiles and HostFiles64 amended to follow symlinks on File.Register calls.

So, if the name passed to Register denotes a symlink-file, then this symlink is resolved in POSIXcompliant manner until a regular file is reached.

If the last component of the resulting normalized (canonicalized) name does not exist, it is created. (That is, if the link exists but points to a nonexistent file in a valid directory)

If the link is broken, Register returns an error.

Implementation notes:

canonicalize_file_name() Libc function is used to normalize (canonicalize) the filename passed to .Register. If the name cannot be normalized because the target file is not found, then .Register treats this as registering a new file, and the new file is open by open() Libc function. Otherwise, if the name cannot be normalized for whatever other reason, Register returns and error and does not attempt to actually perform any file operations.
If the name is successfully normalized, .Register treats this as before the amendment.

Страница 1 из 1 Часовой пояс: UTC + 3 часа
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/