summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_sys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 1a8185af6a..15a368f66b 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3240,11 +3240,13 @@ PP(pp_ftrowned)
PP(pp_ftlink)
{
dVAR;
- I32 result;
dSP;
+ I32 result;
tryAMAGICftest('l');
result = my_lstat();
+ SPAGAIN;
+
if (result < 0)
RETPUSHUNDEF;
if (S_ISLNK(PL_statcache.st_mode))