Changed default user and group to root and count links for directories to 0 on non *nix systems
diff --git a/server_stubs.go b/server_stubs.go
index 41d5051..a14c734 100644
--- a/server_stubs.go
+++ b/server_stubs.go
@@ -11,8 +11,11 @@
func runLs(dirname string, dirent os.FileInfo) string {
typeword := runLsTypeWord(dirent)
numLinks := 1
- username := "-"
- groupname := "-"
+ if dirent.IsDir() {
+ numLinks = 0
+ }
+ username := "root"
+ groupname := "root"
mtime := dirent.ModTime()
monthStr := mtime.Month().String()[0:3]
day := mtime.Day()