Added forgotten calls to with-cwd-aligned.
This commit is contained in:
parent
87d82f5011
commit
cb6e8572d6
|
@ -183,7 +183,7 @@
|
|||
;;; ports.
|
||||
|
||||
(define (generic-file-op thing fd-op fname-op)
|
||||
(if (string? thing) (fname-op thing)
|
||||
(if (string? thing) (with-cwd-aligned (fname-op thing))
|
||||
(call/fdes thing fd-op)))
|
||||
|
||||
|
||||
|
@ -338,7 +338,10 @@
|
|||
(lambda (fd) (%truncate-fdes fd length))
|
||||
(lambda (fname) (%truncate-file fname length))))
|
||||
|
||||
(import-os-error-syscall delete-file (path) "scsh_unlink")
|
||||
(import-os-error-syscall %delete-file (path) "scsh_unlink")
|
||||
|
||||
(define (delete-file path)
|
||||
(with-cwd-aligned (%delete-file path)))
|
||||
|
||||
(import-os-error-syscall %sync-file (fd) "scsh_fsync")
|
||||
|
||||
|
|
Loading…
Reference in New Issue