Subject: port-amiga/2316: ADOSFS and softlinks
To: None <gnats-bugs@NetBSD.ORG>
From: Matthias Scheler <tron@colwyn.owl.de>
List: netbsd-bugs
Date: 04/10/1996 10:25:57
>Number:         2316
>Category:       port-amiga
>Synopsis:       ADOSFS and softlinks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 10 06:35:02 1996
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler
tron@colwyn.owl.de
>Release:        960407
>Environment:
NetBSD lyssa 1.1B NetBSD 1.1B (LYSSA) #1: Wed Apr 10 02:58:11 MET DST 1996     tron@lyssa:/usr/src/sys/arch/amiga/compile/LYSSA amiga

>Description:
NetBSD's ADOSFS reports the length of a softlink as 0. IMHO it should report
the length of the link's target as FFS does.

>How-To-Repeat:
tron@lyssa:/mnt/sillabub/TrapDoor>ls -l TrapDoor.key 
lrwxr-x---  1 root  ados   0 Feb 23 16:46 TrapDoor.key -> /Fatty/Keys/TrapDoor.key

>Fix:
 
*** src/sys/adosfs/advfsops.c.orig      Fri Apr  5 14:30:44 1996
--- src/sys/adosfs/advfsops.c   Wed Apr 10 02:57:04 1996
*************** adosfs_vget(mp, an, vpp)
*** 432,437 ****
--- 432,438 ----
                        namlen++;
                }
                ap->slinkto[namlen] = 0;
+               ap->fsize = namlen;
                break;
        default:
                brelse(bp);

>Audit-Trail:
>Unformatted: