file-chauthor.lisp 449 B

12345678910111213141516
  1. (in-package :hurd-translator)
  2. (def-fs-interface :file-chauthor ((port port)
  3. (author uid-t))
  4. (with-lookup protid port
  5. (cond
  6. ((allow-author-change-p *translator*
  7. (get-node protid)
  8. (get-user protid)
  9. author)
  10. (setf (stat-get (stat (get-node protid)) 'st-author) author)
  11. t)
  12. (t :not-permitted))))