use explicit octal uid values in proto

to match password file, list output
make fsck output octal too
This commit is contained in:
phil
2019-10-28 23:14:16 -04:00
parent 07b5d101bd
commit ab38b0e263
3 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -213,8 +213,8 @@ sub print_direntry {
# Warn about empty filename
$name= "EMPTY FILENAME" if ($name=~ m{/$});
printf( "%4d %s%s%s%s%s %2d %3d %5d %s\n",
$inum, $p1, $p2, $p3, $p4, $p5, $links, $uid, $size, $name );
printf( "%4d %s%s%s%s%s %2d %3o %5d %s\n",
$inum, $p1, $p2, $p3, $p4, $p5, $links, $uid & 0777, $size, $name );
}
# Given a directory's i-num and name, check it