Require symlink support

Require lstat(2), lchown(2), S_IFLNK and S_ISLNK from POSIX.1-2001.

Already unconditionally used in lib/tcbfuncs.c and lib/run_part.c.
This commit is contained in:
Christian Göttsche
2022-08-05 17:57:24 +02:00
committed by Serge Hallyn
parent f6f8bcd2a5
commit dab764d019
4 changed files with 3 additions and 27 deletions

View File

@ -65,7 +65,6 @@ int lrename (const char *old, const char *new)
int res;
char *r = NULL;
#if defined(S_ISLNK)
#ifndef __GLIBC__
char resolved_path[PATH_MAX];
#endif /* !__GLIBC__ */
@ -82,7 +81,6 @@ int lrename (const char *old, const char *new)
new = r;
}
}
#endif /* S_ISLNK */
res = rename (old, new);