--- stat.fmt.c.orig Sun Feb 16 16:12:33 1997 +++ stat.fmt.c Tue Oct 20 21:24:46 1998 @@ -59,6 +59,7 @@ #define OKAY 0 /* Success return code from call */ char *fmt_str; /* Format string for displaying i-nodes */ +int fmt_used; char *progname; /* Name we're called as */ char *fmt_app __P((char *, char *)); @@ -104,9 +105,9 @@ } if( count < LBUFSIZ) Lbuf[count] = '\0'; - printf(" File: \"%s\" -> \"%s\"\n", filename, Lbuf); + if(!fmt_used)printf(" File: \"%s\" -> \"%s\"\n", filename, Lbuf); } else - printf(" File: \"%s\"\n", filename); + if(!fmt_used)printf(" File: \"%s\"\n", filename); FmtInode(buf, fmt_str, &Sbuf); @@ -550,6 +551,7 @@ */ fmt_str = " Size: %s\tAllocated Blocks: %b\tFiletype: %f\n Mode: (%p)\tUid: (%u) Gid: (%g)\nDevice: %d\tInode: %i\tLinks: %l\t%t\nAccess: %a\nModify: %m\nChange: %c\n"; + fmt_used = 0; /* * Check for flag arguments ... @@ -563,6 +565,7 @@ case 'f': /* Format specifier */ fmt_str = optarg; + fmt_used = 1; break; }