crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

fix-format.patch (963B)


      1 Fakeroot defines custom fake_dev_t/fake_ino_t as uint64_t
      2 but doesn't use the PRIu64 format specifier from inttypes.h
      3 to print them thereby relying on a specific representation
      4 of these types.
      5 
      6 diff -upr fakeroot-1.27.orig/faked.c fakeroot-1.27/faked.c
      7 --- fakeroot-1.27.orig/faked.c	2022-01-17 21:37:21.000000000 +0100
      8 +++ fakeroot-1.27/faked.c	2022-01-30 11:36:59.963019225 +0100
      9 @@ -121,6 +121,7 @@
     10  #include <stdlib.h>
     11  #include <string.h>
     12  #include <signal.h>
     13 +#include <inttypes.h>
     14  #ifdef HAVE_STDINT_H
     15  # include <stdint.h>
     16  #endif
     17 @@ -687,7 +688,7 @@ int load_database(const uint32_t remote)
     18  /*                               */
     19  /*********************************/
     20  void debug_stat(const struct fakestat *st){
     21 -  fprintf(stderr,"dev:ino=(%llx:%lli), mode=0%lo, own=(%li,%li), nlink=%li, rdev=%lli\n",
     22 +  fprintf(stderr,"dev:ino=(%"PRIx64":%"PRIu64"), mode=0%lo, own=(%li,%li), nlink=%li, rdev=%"PRIu64"\n",
     23  	  st->dev,
     24  	  st->ino,
     25  	  (long)st->mode,