URI:
       tlib9: use symlink size, not target size, in dirstat - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 4712e22300315fcad068cc611de6866bb1e2a502
   DIR parent d07db89b00a55db3ca9c3577422cbd9be722dae6
  HTML Author: Russ Cox <rsc@swtch.com>
       Date:   Fri,  4 Jul 2008 02:54:06 -0400
       
       lib9: use symlink size, not target size, in dirstat
       
       Diffstat:
         M src/lib9/_p9dir.c                   |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c
       t@@ -203,8 +203,10 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char *
                                d->mode |= DMDIR;
                                d->qid.type = QTDIR;
                        }
       -                if(S_ISLNK(lst->st_mode))        /* yes, lst not st */
       +                if(S_ISLNK(lst->st_mode)){        /* yes, lst not st */
                                d->mode |= DMSYMLINK;
       +                        d->length = lst->st_size;
       +                }
                        if(S_ISFIFO(st->st_mode))
                                d->mode |= DMNAMEDPIPE;
                        if(S_ISSOCK(st->st_mode))