mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-04 01:18:17 +02:00
25 lines
862 B
Diff
25 lines
862 B
Diff
Fakeroot defines custom fake_dev_t/fake_ino_t as uint64_t
|
|
but doesn't use the PRIu64 format specifier from inttypes.h
|
|
to print them thereby relying on a specific representation
|
|
of these types.
|
|
|
|
diff -upr fakeroot-1.27.orig/faked.c fakeroot-1.27/faked.c
|
|
--- a/faked.c
|
|
+++ b/faked.c
|
|
@@ -123,6 +123,7 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
+#include <inttypes.h>
|
|
#ifdef HAVE_STDINT_H
|
|
# include <stdint.h>
|
|
#endif
|
|
@@ -689,7 +690,7 @@ int load_database(const uint32_t remote)
|
|
/* */
|
|
/*********************************/
|
|
void debug_stat(const struct fakestat *st){
|
|
- fprintf(stderr,"dev:ino=(%llx:%lli), mode=0%lo, own=(%li,%li), nlink=%li, rdev=%lli\n",
|
|
+ fprintf(stderr,"dev:ino=(%"PRIx64":%"PRIu64"), mode=0%lo, own=(%li,%li), nlink=%li, rdev=%"PRIu64"\n",
|
|
st->dev,
|
|
st->ino,
|
|
(long)st->mode,
|