svn commit: trunk/busybox/coreutils

vda at busybox.net vda at busybox.net
Wed Nov 28 19:25:33 UTC 2007


Author: vda
Date: 2007-11-28 11:25:32 -0800 (Wed, 28 Nov 2007)
New Revision: 20566

Log:
touch: accept and ignore -f



Modified:
   trunk/busybox/coreutils/touch.c


Changeset:
Modified: trunk/busybox/coreutils/touch.c
===================================================================
--- trunk/busybox/coreutils/touch.c	2007-11-28 19:23:12 UTC (rev 20565)
+++ trunk/busybox/coreutils/touch.c	2007-11-28 19:25:32 UTC (rev 20566)
@@ -26,8 +26,9 @@
 {
 	int fd;
 	int status = EXIT_SUCCESS;
-	int flags = getopt32(argv, "c");
+	int flags = getopt32(argv, "cf");
 
+	flags &= 1; /* ignoring -f (BSD compat thingy) */
 	argv += optind;
 
 	if (!*argv) {




More information about the busybox-cvs mailing list