diff options
-rw-r--r-- | ext/POSIX/POSIX.xs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index e09454d619..72842998f4 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -1704,9 +1704,15 @@ SysRet mkfifo(filename, mode) char * filename Mode_t mode + ALIAS: + access = 1 CODE: - TAINT_PROPER("mkfifo"); - RETVAL = mkfifo(filename, mode); + if(ix) { + RETVAL = access(filename, mode); + } else { + TAINT_PROPER("mkfifo"); + RETVAL = mkfifo(filename, mode); + } OUTPUT: RETVAL @@ -1859,11 +1865,6 @@ tzname() PUSHs(newSVpvn_flags(tzname[0], strlen(tzname[0]), SVs_TEMP)); PUSHs(newSVpvn_flags(tzname[1], strlen(tzname[1]), SVs_TEMP)); -SysRet -access(filename, mode) - char * filename - Mode_t mode - char * ctermid(s = 0) char * s = 0; |