Recent

Author Topic: LHelp causes error on exit  (Read 1104 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 5866
Re: LHelp causes error on exit
« Reply #15 on: October 01, 2022, 04:30:26 pm »
just a blind shot:  LHelp was first run out of the installer, so it was running "with root privileges" (UAC elevated user in Vista+ terms, admin user in XP- terms), and all the files created by it in the session inherited this admin-only credentials. Then regular user program indeed can not touch it.

But he specifically said that the files were readable (albeit hidden).

I can see that there might have been a problem if the directory that contained them wasn't writeable and lhelp was trying to create an index in-situ, but that's information we haven't yet been given.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Arioch

  • Sr. Member
  • ****
  • Posts: 415
Re: LHelp causes error on exit
« Reply #16 on: October 01, 2022, 04:43:23 pm »
But he specifically said that the files were readable (albeit hidden).

sure.

you can read /bin/sh and /bin/bash and /bin/login as mere user can't you? how would you work otherwise

they are perfectly readable, but they are not writeable

MarkMLl

  • Hero Member
  • *****
  • Posts: 5866
Re: LHelp causes error on exit
« Reply #17 on: October 01, 2022, 05:02:53 pm »
they are perfectly readable, but they are not writeable

I'll try again: why would files not being writeable upset lhelp, which one would expect to only need RO access?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Arioch

  • Sr. Member
  • ****
  • Posts: 415
Re: LHelp causes error on exit
« Reply #18 on: October 01, 2022, 05:09:21 pm »
one would expect to only need RO access?

because that is not so :-)

R/O files are files in Program Files (or /usr/bin, /usr/share) - the files that constitute immutable "product distribution"

%AppData%\* is the home dir, ~/.* - hence the place is supposed to contain mutable temporary files and configs

On my box this file consists of

Code: Pascal  [Select][+][-]
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <CONFIG>
  3.   <TChmContentProvider>
  4.     <TabControlWidth Value="227"/>
  5.   </TChmContentProvider>
  6.   <Position Maximized="False">
  7.     <Left Value="2307"/>
  8.     <Top Value="293"/>
  9.     <Width Value="1145"/>
  10.     <Height Value="755"/>
  11.   </Position>
  12.   <LastFileOpen Value="D:\Books\%%thormotors\APT Server.chm"/>
  13.   <Recent>
  14.     <ItemCount Value="10"/>
  15.     <Item0 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\ref.chm"/>
  16.     <Item1 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\user.chm"/>
  17.     <Item2 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\toc.chm"/>
  18.     <Item3 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\rtl.chm"/>
  19.     <Item4 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\prog.chm"/>
  20.     <Item5 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\lcl.chm"/>
  21.     <Item6 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\lazutils.chm"/>
  22.     <Item7 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\fpdoc.chm"/>
  23.     <Item8 Value="file://D:\fpcupdeluxe\lazarus\docs\chm\fclres.chm"/>
  24.     <Item9 Value="file://D:\fpcupdeluxe\lazarus_deb\docs\chm\lazutils.chm"/>
  25.   </Recent>
  26.   <OpenSepTabs Value="True"/>
  27.   <OpenWithStatus Value="True"/>
  28. </CONFIG>
  29.  
« Last Edit: October 01, 2022, 05:10:55 pm by Arioch »

 

TinyPortal © 2005-2018