Calling SysGetFileDateTime with a filename parameter that includes a tilde and a slash causes the slash to be removed. Example:
f = "~someuser/somefile"
Rc = SysGetFileDateTime(f)
will change the value of f to "~someusersomefile"
Logged In: NO
This is version 3.1.1 under Linux.
You seem to have CSS turned off.
Please don't fill out this field.
Logged In: YES
This is not limited to this function. Any Rexxutil function that accepts a filename argument has this bug.
The problem is in resolve_tilde(). When the passed argument contains a username; ie "~username/" the slash is replaced with a .\0' in the argument passed to resolve_tilde() to get the username. This pointer points to argv.strptr in the Rexxutil function, which obviously points to the value of the Rexx variable passed in.
Fix is to take a copy of the username component of the passed filename argument rather than changing the passed parameter.