Skip to content
  • Rob Swindell's avatar
    77fd082f
    Resolve failure to touch files when non-owner on *nix · 77fd082f
    Rob Swindell authored
    ftouch(), semfile_signal(), and JS file_utime() would fail to update a file's access/mod times with errno=EPERM if not run as the file's owner. From "man utime":
    
    EPERM times is not NULL, the caller's effective UID does not match the owner of the file, and the caller is not privileged (Linux: does not have the CAP_FOWNER capability).
    
    So use a NULL times parameter value when updating to a file's time stamp(s) to the current time.
    77fd082f
    Resolve failure to touch files when non-owner on *nix
    Rob Swindell authored
    ftouch(), semfile_signal(), and JS file_utime() would fail to update a file's access/mod times with errno=EPERM if not run as the file's owner. From "man utime":
    
    EPERM times is not NULL, the caller's effective UID does not match the owner of the file, and the caller is not privileged (Linux: does not have the CAP_FOWNER capability).
    
    So use a NULL times parameter value when updating to a file's time stamp(s) to the current time.
Loading