wok-next diff busybox/stuff/patches/stat.u @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents 2ef4101ba8f7
children
line diff
     1.1 --- a/busybox/stuff/patches/stat.u	Fri Sep 29 20:57:09 2017 +0300
     1.2 +++ b/busybox/stuff/patches/stat.u	Tue Sep 01 10:44:52 2020 +0000
     1.3 @@ -1,8 +1,8 @@
     1.4  Add non standard stat -m support to display file block list
     1.5  Useful to patch read-only filesystems such as ISO9660, for defragmentation
     1.6  tools or boot loaders
     1.7 ---- busybox-1.26/coreutils/stat.c
     1.8 -+++ busybox-1.26/coreutils/stat.c
     1.9 +--- busybox-1.31/coreutils/stat.c
    1.10 ++++ busybox-1.31/coreutils/stat.c
    1.11  @@ -54,6 +54,7 @@
    1.12   //usage:	)
    1.13   //usage:     "\n	-L	Follow links"
    1.14 @@ -29,7 +29,7 @@
    1.15   };
    1.16   
    1.17   #if ENABLE_FEATURE_STAT_FORMAT
    1.18 -@@ -463,6 +466,25 @@
    1.19 +@@ -467,6 +470,25 @@
    1.20   }
    1.21   #endif  /* FEATURE_STAT_FORMAT */
    1.22   
    1.23 @@ -55,22 +55,24 @@
    1.24   #if ENABLE_FEATURE_STAT_FILESYSTEM
    1.25   /* Stat the file system and print what we find.  */
    1.26   #if !ENABLE_FEATURE_STAT_FORMAT
    1.27 -@@ -763,7 +785,7 @@
    1.28 - 	statfunc_ptr statfunc = do_stat;
    1.29 - 
    1.30 - 	opt_complementary = "-1"; /* min one arg */
    1.31 --	opts = getopt32(argv, "tL"
    1.32 -+	opts = getopt32(argv, "tLm"
    1.33 +@@ -770,7 +792,7 @@
    1.34 + 	opts =
    1.35 + #endif
    1.36 + 	getopt32(argv, "^"
    1.37 +-		"tL"
    1.38 ++		"tLm"
    1.39   		IF_FEATURE_STAT_FILESYSTEM("f")
    1.40   		IF_SELINUX("Z")
    1.41 - 		IF_FEATURE_STAT_FORMAT("c:", &format)
    1.42 -@@ -777,6 +799,9 @@
    1.43 + 		IF_FEATURE_STAT_FORMAT("c:")
    1.44 +@@ -786,6 +808,11 @@
    1.45   		selinux_or_die();
    1.46   	}
    1.47   #endif
    1.48 ++#if ENABLE_FEATURE_STAT_FILESYSTEM
    1.49  + 	if (opts & OPT_MAP) { /* -m */
    1.50  + 		statfunc = do_mapfile;
    1.51  +	}
    1.52 ++#endif
    1.53   	ok = 1;
    1.54   	argv += optind;
    1.55   	for (i = 0; argv[i]; ++i)