Windows: fs examine owner and group are signed
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 21 Dec 2009 17:35:12 +0000 (12:35 -0500)
committerJeffrey Altman <jaltman|account-1000011@unknown>
Wed, 13 Jan 2010 07:02:39 +0000 (23:02 -0800)
Change the owner array to be signed for displaying owner
and group within fs examine output.

LICENSE MIT

Change-Id: I807e3f1b3c07eb26c1782d6b76cd49977467ce33
Reviewed-on: http://gerrit.openafs.org/1017
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/WINNT/afsd/fs.c

index 3fbbe96..fd9d915 100644 (file)
@@ -1630,7 +1630,7 @@ ExamineCmd(struct cmd_syndesc *as, void *arock)
     for(ti=as->parms[0].items; ti; ti=ti->next) {
         cm_fid_t fid;
         afs_uint32 filetype;
-       afs_uint32 owner[2];
+       afs_int32 owner[2];
        char cell[CELL_MAXNAMELEN];
 
         /* once per file */
@@ -1690,7 +1690,7 @@ ExamineCmd(struct cmd_syndesc *as, void *arock)
             pr_Initialize(1, confDir, cell);
            pr_SIdToName(owner[0], oname);
            pr_SIdToName(owner[1], gname);
-           printf("Owner %s (%u) Group %s (%u)\n", oname, owner[0], gname, owner[1]);
+           printf("Owner %s (%d) Group %s (%d)\n", oname, owner[0], gname, owner[1]);
         }
 
        blob.out = space;