diff options
Diffstat (limited to 'guts/symlinkat.c')
-rw-r--r-- | guts/symlinkat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guts/symlinkat.c b/guts/symlinkat.c index eaf1523..b70d500 100644 --- a/guts/symlinkat.c +++ b/guts/symlinkat.c @@ -9,7 +9,7 @@ struct stat64 buf; char *roldname = 0; - if (oldname[0] == '/' && pseudo_chroot_len) { + if (oldname[0] == '/' && pseudo_chroot_len && !pseudo_nosymlinkexp) { size_t len = pseudo_chroot_len + strlen(oldname) + 1; roldname = malloc(len); snprintf(roldname, len, "%s%s", pseudo_chroot, oldname); |