Browse Source

Plan 9 from Bell Labs 2003-12-15

David du Colombier 15 years ago
parent
commit
f0a4034c81
4 changed files with 8 additions and 3 deletions
  1. 2 2
      dist/replica/plan9.db
  2. 2 0
      dist/replica/plan9.log
  3. 1 0
      lib/units
  4. 3 1
      sys/src/cmd/tapefs/tarfs.c

+ 2 - 2
dist/replica/plan9.db

@@ -2777,7 +2777,7 @@ lib/tel - 664 sys sys 957918740 6053
 lib/tftpd - 20000000775 sys sys 944944178 0
 lib/unicode - 664 sys sys 958440028 223312
 lib/unicode.notice - 664 sys sys 958504386 1398
-lib/units - 664 sys sys 1014923483 9984
+lib/units - 664 sys sys 1071415518 9997
 lib/vgadb - 664 sys sys 1065961653 27832
 lib/volcanoes - 664 sys sys 944944024 119831
 lib/words - 664 sys sys 1014923442 247097
@@ -10382,7 +10382,7 @@ sys/src/cmd/tapefs/fs.c - 664 sys sys 1032060630 9777
 sys/src/cmd/tapefs/mkfile - 664 sys sys 1032060649 258
 sys/src/cmd/tapefs/tapefs.h - 664 sys sys 1014926384 1609
 sys/src/cmd/tapefs/tapfs.c - 664 sys sys 1063854819 1938
-sys/src/cmd/tapefs/tarfs.c - 664 sys sys 1071322741 2621
+sys/src/cmd/tapefs/tarfs.c - 664 sys sys 1071458376 2672
 sys/src/cmd/tapefs/tpfs.c - 664 sys sys 1071322722 2012
 sys/src/cmd/tapefs/util.c - 664 sys sys 1014926385 2653
 sys/src/cmd/tapefs/v10fs.c - 664 sys sys 1014926385 3754

+ 2 - 0
dist/replica/plan9.log

@@ -13129,3 +13129,5 @@
 1071336642 6 c sys/src/cmd/upas/smtp/greylist.c - 664 sys sys 1071335923 5588
 1071342042 0 c 386/ld.com - 775 sys sys 1071340494 65192
 1071342042 1 c sys/man/8/ipconfig - 664 sys sys 1071340739 6037
+1071415853 0 c lib/units - 664 sys sys 1071415518 9997
+1071459058 0 c sys/src/cmd/tapefs/tarfs.c - 664 sys sys 1071458376 2672

+ 1 - 0
lib/units

@@ -128,6 +128,7 @@ angstrom		Å
 inch			2.54 cm
 "			inch
 in			inch
+inches		inch
 '			12"
 foot			12 in
 feet			foot

+ 3 - 1
sys/src/cmd/tapefs/tarfs.c

@@ -56,7 +56,9 @@ populate(char *name)
 		f.mdate = strtoul(dblock.dbuf.mtime, 0, 8);
 		chksum = strtoul(dblock.dbuf.chksum, 0, 8);
 		/* the mode test is ugly but sometimes necessary */
-		if (dblock.dbuf.linkflag == '5' || (f.mode&0170000) == 040000)
+		if (dblock.dbuf.linkflag == '5'
+		|| (f.mode&0170000) == 040000
+		||  strrchr(dblock.dbuf.name, '\0')[-1] == '/')
 			f.mode |= DMDIR;
 		f.mode &= DMDIR|0777;
 		linkflg = dblock.dbuf.linkflag=='s' || dblock.dbuf.linkflag=='1';