English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 26 August 2022, 17:59   #1
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
symbolic links to dirs are not evaluated when needed

So if on a harddisk (tied to a directory structure on windows) I have a symbolic link to another directory. Then I cant cd into that symbolic link before the directory has been listed.

So:
makedir sys:test/file
Makedir sys_test/link sys:test/file soft

Then reboot and directly:
cd sys:test/link

it will complain that the object doesn't exist

now do:
dir sys:test
cd sys:test/link

and it works, so there obviously is a bug.
boemann is offline  
Old 27 August 2022, 23:16   #2
AmiClassic
Registered User
 
AmiClassic's Avatar
 
Join Date: Feb 2020
Location: PL
Posts: 157
Quote:
makedir sys:test/file
Did you check under some filemanager if such a folder was created? This should not work
AmiClassic is offline  
Old 28 August 2022, 18:37   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Which AmigaOS version does this require? At least 3.1 makedir does not seem to have soft parameter. (For me default is always 3.1)
Toni Wilen is offline  
Old 28 August 2022, 20:29   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Probably it should read Makelink instead of Makedir and also sys:test instead of sys_test.
thomas is offline  
Old 29 August 2022, 22:12   #5
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
yes makelink sorry

and as far as making test/file yes it was just a little shorthand and the name should really be drawer as it is obviously not a file
boemann is offline  
Old 10 September 2022, 14:11   #6
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
Ping ?
boemann is offline  
Old 10 September 2022, 14:47   #7
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,172
theres more than 1 makelink, so their still probably waiting for you to list which OS and which makelink variant, ie: if you used the native one bundled with your os or 1 of the alternatives on aminet. Havent tried on WinUAE yet but on FS-UAE makelink doesnt function as expected when using Directory mode harddrives, and only functions right when using a native filesystem, does work linking directory mode source TO a native filesystem destination like RAM: however..

https://eab.abime.net/showthread.php?t=111215

Quote:
Originally Posted by FrodeSolheim View Post
Hmm, without having looked into it yet, I suspect *soft links* may be feasible to implement in a cross-platform manner (presumably, AmigaOS itself handles the logic and the file system itself must only store the link target). Hard links is presumably a feature in the file system itself and more difficult to implement.

Last edited by DisasterIncarna; 10 September 2022 at 14:53.
DisasterIncarna is offline  
Old 10 September 2022, 17:57   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Fix examples first. I won't attempt to guess, even if it looks obvious.
Toni Wilen is offline  
Old 10 September 2022, 21:14   #9
midimax
Registered User
 
Join Date: Aug 2014
Location: Germany
Posts: 53
Wouldn't that be kind a security risk for the host Machine?

For example, just as an dumb Idea, create in AmigaOS a "Windows" directory in your Amiga "C:", use Amigas Makelink to make a symbolic link to that. This now creates at the host directory a symbolic link to you know to where. Remove the Amiga sides target directory and have fun accessing that host directory through that link.
midimax is offline  
Old 13 September 2022, 18:08   #10
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
makedir sys:test
makedir sys:test/targetdir
cd sys:test
makelink link sys:test/targetdir soft

Then reboot and then this will fail:

cd sys:test/link

if you then do:

dir sys:test

then the cd will work if you try it again:

cd sys:test/link

Last edited by boemann; 13 September 2022 at 23:35.
boemann is offline  
Old 13 September 2022, 19:06   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Unfortunately that won't work with WB 3.1 (see my first post). EDIT: Does makelink from Aminet work?

Quote:
Wouldn't that be kind a security risk for the host Machine?
UAE directory filesystem only allows creation of softlinks (softlink target) that are already accessible from Amiga side (same or another mounted directory filesystem).

Last edited by Toni Wilen; 13 September 2022 at 20:26.
Toni Wilen is offline  
Old 13 September 2022, 23:24   #12
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
Sorry yes it requires AmigaOS 3.2.
I've tested it with makelink from aminet and that works too I mean it can create the link - the bug is still there

I've amended my example a bit as makelink wants it first argument to be a name and not a full path and the second argument should be a fully qualified path

Last edited by boemann; 13 September 2022 at 23:39.
boemann is offline  
Old 16 September 2022, 19:24   #13
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
https://www.winuae.net/files/b/winuae.7z should fix it (warning: development version). But I don't have any link test cases so it is someone else's problem to confirm it
Toni Wilen is offline  
Old 16 September 2022, 19:33   #14
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
Thanks I'll try it out and give you some feedback
boemann is offline  
Old 16 September 2022, 19:40   #15
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 327
It works ! Thanks
boemann is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interactive symbolic bitop calculator paraj Coders. Asm / Hardware 2 07 May 2017 22:13
looking for kissed - keith's interactive symbolic screen editing debugger copse request.Apps 0 17 April 2012 08:26
Need a fluent scroll in WB dirs VoltureX support.Apps 6 29 November 2011 11:01
Problem with XPK packed modules dirs QuartZ support.WinUAE 1 29 December 2010 00:39
Good PSX (one) games ? Links needed... AmiGer Retrogaming General Discussion 25 16 July 2004 05:35

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.14827 seconds with 13 queries