stat is different on Linux vs. IRIX. Will use ls instead and filter.
authorTim Shimmin <tes@sgi.com>
Tue, 23 Aug 2005 15:12:53 +0000 (15:12 +0000)
committerTim Shimmin <tes@sgi.com>
Tue, 23 Aug 2005 15:12:53 +0000 (15:12 +0000)
Merge of master-melb:xfs-cmds:23593a by kenmcd.

  stat is different on Linux vs. IRIX. Will use ls instead and filter.

118
118.out

diff --git a/118 b/118
index b2c00d0674bb4c315b9905f6eee1c39afa848cc0..be43ed6d7a84a84c7a8b49f3c124782f59dbe052 100755 (executable)
--- a/118
+++ b/118
@@ -99,7 +99,9 @@ echo "now fill in the holes"
 _chowning_file 1000 2000 1
 
 echo "look at the final file ownership for fun"
-stat -ug $SCRATCH_MNT/* | sed "s#$SCRATCH_MNT#SCRATCH_MNT#g"
+ls -l $SCRATCH_MNT/* \
+| $AWK_PROG 'NF > 2 {print $3, $4, $NF}' \
+| sed "s#$SCRATCH_MNT#SCRATCH_MNT#g"
 
 # success, all done
 status=0
diff --git a/118.out b/118.out
index b7ea997525dff0bf55f638206112b94d551e4898..5cdb6944d982a83d25eb4972d0b32c81ffd95505 100644 (file)
--- a/118.out
+++ b/118.out
@@ -6,5 +6,4 @@ creating quota file with holes
 now fill in the holes
 ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 look at the final file ownership for fun
-SCRATCH_MNT/file.chown:
-       uid 1999; gid 1999
+1999 1999 SCRATCH_MNT/file.chown