aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-08-17 08:26:36 +0100
committerRon Yorston <rmy@pobox.com>2021-08-17 08:26:36 +0100
commitf13defb1c8f892ecf3e8dd5dbe486cc2b53e6f03 (patch)
tree15c9c174532e433e5632637c541d09e591c01d60 /coreutils
parent41f31584037be6b9d74a89245dff9ad8f0db146f (diff)
parent540aa116615713ad53e5ac98850993162e27c32d (diff)
downloadbusybox-w32-f13defb1c8f892ecf3e8dd5dbe486cc2b53e6f03.tar.gz
busybox-w32-f13defb1c8f892ecf3e8dd5dbe486cc2b53e6f03.tar.bz2
busybox-w32-f13defb1c8f892ecf3e8dd5dbe486cc2b53e6f03.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cp.c4
-rw-r--r--coreutils/dd.c4
-rw-r--r--coreutils/touch.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c
index 50ca1ccea..ee40af50b 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -121,14 +121,12 @@ int cp_main(int argc, char **argv)
121 int d_flags; 121 int d_flags;
122 int flags; 122 int flags;
123 int status; 123 int status;
124 enum {
125#if ENABLE_FEATURE_CP_LONG_OPTIONS 124#if ENABLE_FEATURE_CP_LONG_OPTIONS
125 enum {
126 /*OPT_rmdest = FILEUTILS_RMDEST = 1 << FILEUTILS_CP_OPTBITS */ 126 /*OPT_rmdest = FILEUTILS_RMDEST = 1 << FILEUTILS_CP_OPTBITS */
127 OPT_parents = 1 << (FILEUTILS_CP_OPTBITS+1), 127 OPT_parents = 1 << (FILEUTILS_CP_OPTBITS+1),
128 OPT_reflink = 1 << (FILEUTILS_CP_OPTBITS+2), 128 OPT_reflink = 1 << (FILEUTILS_CP_OPTBITS+2),
129#endif
130 }; 129 };
131#if ENABLE_FEATURE_CP_LONG_OPTIONS
132# if ENABLE_FEATURE_CP_REFLINK 130# if ENABLE_FEATURE_CP_REFLINK
133 char *reflink = NULL; 131 char *reflink = NULL;
134# endif 132# endif
diff --git a/coreutils/dd.c b/coreutils/dd.c
index b476ed24f..a3c9ababf 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -56,8 +56,8 @@
56//kbuild:lib-$(CONFIG_DD) += dd.o 56//kbuild:lib-$(CONFIG_DD) += dd.o
57 57
58//usage:#define dd_trivial_usage 58//usage:#define dd_trivial_usage
59//usage: "[if=FILE] [of=FILE] [" IF_FEATURE_DD_IBS_OBS("ibs=N obs=N/") "bs=N] [count=N] [skip=N] [seek=N]\n" 59//usage: "[if=FILE] [of=FILE] [" IF_FEATURE_DD_IBS_OBS("ibs=N obs=N/") "bs=N] [count=N] [skip=N] [seek=N]"
60//usage: IF_FEATURE_DD_IBS_OBS( 60//usage: IF_FEATURE_DD_IBS_OBS("\n"
61//usage: " [conv=notrunc|noerror|sync|fsync]\n" 61//usage: " [conv=notrunc|noerror|sync|fsync]\n"
62//usage: " [iflag=skip_bytes|count_bytes|fullblock|direct] [oflag=seek_bytes|append|direct]" 62//usage: " [iflag=skip_bytes|count_bytes|fullblock|direct] [oflag=seek_bytes|append|direct]"
63//usage: ) 63//usage: )
diff --git a/coreutils/touch.c b/coreutils/touch.c
index ec12eb7cf..78100ba1d 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -127,6 +127,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv)
127#endif 127#endif
128 ); 128 );
129 129
130#if ENABLE_FEATURE_TOUCH_SUSV3
130 timebuf[0].tv_nsec = timebuf[1].tv_nsec = UTIME_NOW; 131 timebuf[0].tv_nsec = timebuf[1].tv_nsec = UTIME_NOW;
131 if (opts & OPT_r) { 132 if (opts & OPT_r) {
132 struct stat stbuf; 133 struct stat stbuf;
@@ -160,6 +161,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv)
160 timebuf[1].tv_nsec = UTIME_OMIT; 161 timebuf[1].tv_nsec = UTIME_OMIT;
161 if ((opts & (OPT_a|OPT_m)) == OPT_m) 162 if ((opts & (OPT_a|OPT_m)) == OPT_m)
162 timebuf[0].tv_nsec = UTIME_OMIT; 163 timebuf[0].tv_nsec = UTIME_OMIT;
164#endif
163 165
164 argv += optind; 166 argv += optind;
165 do { 167 do {