aboutsummaryrefslogtreecommitdiff
path: root/coreutils/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/touch.c')
-rw-r--r--coreutils/touch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c
index 1b4a5f0ea..e79092fc1 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -64,10 +64,14 @@ int touch_main(int argc UNUSED_PARAM, char **argv)
64#if ENABLE_DESKTOP && ENABLE_LONG_OPTS 64#if ENABLE_DESKTOP && ENABLE_LONG_OPTS
65 applet_long_options = touch_longopts; 65 applet_long_options = touch_longopts;
66#endif 66#endif
67 opts = getopt32(argv, "c" IF_DESKTOP("r:d:") 67 /* -d and -t both set time. In coreutils,
68 * accepted data format differs a bit between -d and -t.
69 * We accept the same formats for both */
70 opts = getopt32(argv, "c" IF_DESKTOP("r:d:t:")
68 /*ignored:*/ "fma" 71 /*ignored:*/ "fma"
69 IF_DESKTOP(, &reference_file) 72 IF_DESKTOP(, &reference_file)
70 IF_DESKTOP(, &date_str) 73 IF_DESKTOP(, &date_str)
74 IF_DESKTOP(, &date_str)
71 ); 75 );
72 76
73 opts &= 1; /* only -c bit is left */ 77 opts &= 1; /* only -c bit is left */