Use mkstemp() instead of tempnam() to avoid sec. warnings. Fixed a bug when the backup file does not exist initially. Copy the input file mode flags to the output file.
Use mkstemp() instead of tempnam() to avoid sec. warnings.
Fixed a bug when the backup file does not exist initially.
Copy the input file mode flags to the output file.

JFLarvoire/SysToolsLib,JFLarvoire/SysToolsLib,JFLarvoire/SysToolsLib,JFLarvoire/SysToolsLib