Menu

"Permission Denied" when lau...

Help
Dan N
2011-03-18
2012-07-26
  • Dan N

    Dan N - 2011-03-18

    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?

     
  • Allan

    Allan - 2011-03-19

    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.

     
  • Jay Satiro

    Jay Satiro - 2011-03-19

    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
    
     
  • Allan

    Allan - 2011-03-21

    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.

     
MongoDB Logo MongoDB