freebsd-ports/sysutils/stat/files/patch-aa
Cy Schubert 381e98f90e Fix device node formatting.
PR:		13823
Submitted by:	cy
Approved by:	wosch (MAINTAINER)
2003-01-05 20:46:44 +00:00

17 lines
455 B
Text

--- stat.fmt.c.orig Sun Feb 16 05:12:33 1997
+++ stat.fmt.c Sun Sep 19 09:55:50 1999
@@ -440,7 +440,7 @@
break;
case 'd': /* The Device */
- sprintf(auxbuf, "%ld", ip -> st_dev);
+ sprintf(auxbuf, "%2d,%-2d", major(ip -> st_dev), minor(ip -> st_dev));
bufp = fmt_app(auxbuf, bufp);
break;
--- stat.fmt.c.orig Tue Dec 28 12:14:24 1999
+++ stat.fmt.c Tue Dec 28 12:15:20 1999
@@ -502,2 +502,3 @@
}
+ *bufp++ = '\0';
}