diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-22 15:19:42 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-22 15:19:42 +0100 |
commit | d6a2fa87b8e6b131b1ad52f9f586605db95607ed (patch) | |
tree | 2264e60d4b96d6abc633fdf6658e5c0d47154f2c /package/busybox/busybox-1.16.0-touch.patch | |
parent | d6bb69459846c70ae622827454085ca94fb7b350 (diff) |
busybox: additional 1.16.0 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.16.0-touch.patch')
-rw-r--r-- | package/busybox/busybox-1.16.0-touch.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.16.0-touch.patch b/package/busybox/busybox-1.16.0-touch.patch new file mode 100644 index 000000000..4cd62b562 --- /dev/null +++ b/package/busybox/busybox-1.16.0-touch.patch @@ -0,0 +1,21 @@ +diff -urpN busybox-1.16.0/coreutils/touch.c busybox-1.16.0-touch/coreutils/touch.c +--- busybox-1.16.0/coreutils/touch.c 2010-01-25 01:59:38.000000000 +0100 ++++ busybox-1.16.0-touch/coreutils/touch.c 2010-03-21 13:05:34.000000000 +0100 +@@ -104,7 +104,7 @@ int touch_main(int argc UNUSED_PARAM, ch + } + + do { +- if (utimes(*argv, reference_file ? timebuf : NULL) != 0) { ++ if (utimes(*argv, (reference_file || date_str) ? timebuf : NULL) != 0) { + if (errno == ENOENT) { /* no such file */ + if (opts) { /* creation is disabled, so ignore */ + continue; +@@ -113,7 +113,7 @@ int touch_main(int argc UNUSED_PARAM, ch + fd = open(*argv, O_RDWR | O_CREAT, 0666); + if (fd >= 0) { + xclose(fd); +- if (reference_file) ++ if (reference_file || date_str) + utimes(*argv, timebuf); + continue; + } |