mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
fixing tar-create (bad timestamps and wrong args to directory-fold-tree)
Fixes issue #344.
This commit is contained in:
parent
dbeb784701
commit
b238edb0cd
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@
|
|||
(tar-gid-set! tar (file-group st))
|
||||
(tar-owner-set! tar (file-owner-or-nobody st))
|
||||
(tar-group-set! tar (file-group-or-nobody st))
|
||||
(tar-time-set! tar (+ 1262271600 (file-modification-time st)))
|
||||
(tar-time-set! tar (file-modification-time st))
|
||||
(tar-type-set! tar (cond ((file-link? st) "2")
|
||||
((file-character? st) "3")
|
||||
((file-block? st) "4")
|
||||
|
@ -272,7 +272,7 @@
|
|||
(make-bytevector (- 512 rem) 0) out)))))
|
||||
(cons (cons (tar-path tar) src) acc))))))
|
||||
(if (and src0 (not no-recurse?))
|
||||
(directory-fold-tree src0 kons acc kons)
|
||||
(directory-fold-tree src0 #f #f kons acc)
|
||||
(kons src0 acc))))
|
||||
'() files)
|
||||
(write-bytevector (make-bytevector 1024 0) out)
|
||||
|
|
Loading…
Add table
Reference in a new issue