If I launch ed as a plain user (UAC enabled) under Vista, it prints the
message "Permission Denied" and then exits. It works when I run it from a
command prompt with administrator privileges. I've tried setting TMP, TMPDIR,
and HOME as recommended. Is there something else I need to do, or is this a
known bug in ed?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I launch ed as a plain user (UAC enabled) under Vista, it prints the
message "Permission Denied" and then exits. It works when I run it from a
command prompt with administrator privileges.
Simply continue using this workaround. One way to "fix" this bug(/feature?)
may be to make a custom build which bypasses the official security model.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not a manifest issue, it is an issue with the function that creates a
random temp file for ed. It appears the function does not check the
environment for TEMP/TMP/TMPDIR, instead writing to the root of the working
directory. If you can't run ed as admin a workaround would be to use the subst
command to assign a drive letter to your local temporary directory. You can
then switch to that directory and run ed.
subst x: %LOCALAPPDATA%\Temp
x:
ed
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not a manifest issue, it is an issue with the function that creates
a random temp file for ed. It appears the function does not check the
environment for TEMP/TMP/TMPDIR, instead writing to the root of the working
directory.
Since this is the case I decided to install the ed package with mingw and test
it in a limited user account on Windows XP SP3. The same bug occurs and the
workaround works.
...(snip)
D:\gnwn-src\src\ed\1.5\ed-1.5-src>ed README
Permission denied
D:\gnwn-src\src\ed\1.5\ed-1.5-src>subst x: .
D:\gnwn-src\src\ed\1.5\ed-1.5-src>x:
X:>ed README
5832
1,30l
GNU ed is a line-oriented text editor. (snip)....
It is possible that an update to ed 1.5 might fix this bug.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I launch ed as a plain user (UAC enabled) under Vista, it prints the
message "Permission Denied" and then exits. It works when I run it from a
command prompt with administrator privileges. I've tried setting TMP, TMPDIR,
and HOME as recommended. Is there something else I need to do, or is this a
known bug in ed?
Simply continue using this workaround. One way to "fix" this bug(/feature?)
may be to make a custom build which bypasses the official security model.
This is not a manifest issue, it is an issue with the function that creates a
random temp file for ed. It appears the function does not check the
environment for TEMP/TMP/TMPDIR, instead writing to the root of the working
directory. If you can't run ed as admin a workaround would be to use the subst
command to assign a drive letter to your local temporary directory. You can
then switch to that directory and run ed.
Since this is the case I decided to install the ed package with mingw and test
it in a limited user account on Windows XP SP3. The same bug occurs and the
workaround works.
...(snip)
D:\gnwn-src\src\ed\1.5\ed-1.5-src>ed README
Permission denied
D:\gnwn-src\src\ed\1.5\ed-1.5-src>subst x: .
D:\gnwn-src\src\ed\1.5\ed-1.5-src>x:
X:>ed README
5832
1,30l
GNU ed is a line-oriented text editor. (snip)....
It is possible that an update to ed 1.5 might fix this bug.