[devel] OpenVZ/p8, bin/tar: Too many levels of symbolic links

Sergey Afonin asy на altlinux.org
Пн Апр 12 09:59:25 MSK 2021


On Tuesday 30 March 2021, Dmitry V. Levin wrote:

> Интересно, на каком системном вызове это происходит, и как он выглядит?

Как раз подвернулся архив, на котором при распаковке вылезло:

В strace это выглядит как-то так:

newfstatat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
unlinkat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", 0) = 0
symlinkat("/usr/share/git-core/hooks/pre-rebase", AT_FDCWD, "inn/.git/hooks/pre-rebase.sample") = 0
utimensat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", [UTIME_OMIT, {tv_sec=1618208993, tv_nsec=0} /* 2021-04-12T06:29:53+0000 */], AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", {st_mode=S_IFLNK|0777, st_size=36, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = -1 ELOOP (Too many levels of symbolic links)
write(2, "tar: ", 5tar: )                    = 5
write(2, "inn/.git/hooks/pre-rebase.sample"..., 65inn/.git/hooks/pre-rebase.sample: Cannot change mode to rwxr-xr-x) = 65
write(2, ": Too many levels of symbolic li"..., 35: Too many levels of symbolic links) = 35
write(2, "\n", 1
)                       = 1

-- 
С уважением, Сергей Афонин.


Подробная информация о списке рассылки Devel