mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-11 06:34:40 +02:00
(print_stat): Don't assume st_ino / st_dev fits in
unsigned long; this isn't true for st_ino on Solaris 9.
This commit is contained in:
12
src/stat.c
12
src/stat.c
@@ -450,16 +450,16 @@ print_stat (char *pformat, char m, char const *filename, void const *data)
|
||||
}
|
||||
break;
|
||||
case 'd':
|
||||
strcat (pformat, "lu");
|
||||
printf (pformat, (unsigned long int) statbuf->st_dev);
|
||||
strcat (pformat, PRIuMAX);
|
||||
printf (pformat, (uintmax_t) statbuf->st_dev);
|
||||
break;
|
||||
case 'D':
|
||||
strcat (pformat, "lx");
|
||||
printf (pformat, (unsigned long int) statbuf->st_dev);
|
||||
strcat (pformat, PRIxMAX);
|
||||
printf (pformat, (uintmax_t) statbuf->st_dev);
|
||||
break;
|
||||
case 'i':
|
||||
strcat (pformat, "lu");
|
||||
printf (pformat, (unsigned long int) statbuf->st_ino);
|
||||
strcat (pformat, PRIuMAX);
|
||||
printf (pformat, (uintmax_t) statbuf->st_ino);
|
||||
break;
|
||||
case 'a':
|
||||
strcat (pformat, "lo");
|
||||
|
||||
Reference in New Issue
Block a user