bit cleared, the bit should be set but was not.
;;; -*-Scheme-*-
;;;
-;;; $Id: dos.scm,v 1.35 1996/04/24 02:38:58 cph Exp $
+;;; $Id: dos.scm,v 1.36 1996/05/04 17:38:40 cph Exp $
;;;
;;; Copyright (c) 1992-96 Massachusetts Institute of Technology
;;;
(define (os/set-file-modes-writable! pathname)
(set-file-modes! pathname #o777))
+(define os/restore-modes-to-updated-file!
+ ;; **** If implementation is changed so that file modes are DOS
+ ;; attributes rather than an emulation of unix modes, this will have
+ ;; to be changed to work like the OS/2 code. ****
+ set-file-modes!)
+
(define (os/scheme-can-quit?)
#t)
;;; -*-Scheme-*-
;;;
-;;; $Id: fileio.scm,v 1.135 1996/04/24 02:30:01 cph Exp $
+;;; $Id: fileio.scm,v 1.136 1996/05/04 17:37:30 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology
;;;
(if modes
(catch-file-errors
(lambda () unspecific)
- (lambda () (set-file-modes! pathname modes))))))))))
+ (lambda ()
+ (os/restore-modes-to-updated-file! pathname
+ modes))))))))))
(define (verify-visited-file-modification-time? buffer)
(let ((truename (buffer-truename buffer))
;;; -*-Scheme-*-
;;;
-;;; $Id: os2.scm,v 1.29 1996/04/24 02:38:48 cph Exp $
+;;; $Id: os2.scm,v 1.30 1996/05/04 17:38:12 cph Exp $
;;;
;;; Copyright (c) 1994-96 Massachusetts Institute of Technology
;;;
result))))))
(define (os/set-file-modes-writable! pathname)
- (set-file-modes! pathname (fix:andc (file-modes pathname) #x0001)))
+ (set-file-modes! pathname
+ (fix:andc (file-modes pathname) os2-file-mode/read-only)))
+
+(define (os/restore-modes-to-updated-file! pathname modes)
+ (set-file-modes! pathname (fix:or modes os2-file-mode/archived)))
(define (os/scheme-can-quit?)
#f)
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.68 1996/04/24 02:38:37 cph Exp $
+;;; $Id: unix.scm,v 1.69 1996/05/04 17:38:55 cph Exp $
;;;
;;; Copyright (c) 1989-96 Massachusetts Institute of Technology
;;;
(define (os/set-file-modes-writable! pathname)
(set-file-modes! pathname #o777))
+(define os/restore-modes-to-updated-file!
+ set-file-modes!)
+
(define (os/sendmail-program)
(if (file-exists? "/usr/lib/sendmail")
"/usr/lib/sendmail"