Welcome, Guest. Please login or register.

Author Topic: Ed and protection bits  (Read 1037 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: Ed and protection bits
« on: December 19, 2004, 12:40:33 PM »
I recall some similar trouble back in Os3.0 relating to ed.

What I did was to rename ed to ed.exe and then write a small dos script wrapper for it and call that ed. The sript would use the protect command to set the protection bits before trying to open the file (and also attempts to after the executable quits).
int p; // A