touch: accept and ignore -f
This commit is contained in:
		| @@ -26,8 +26,9 @@ int touch_main(int argc, char **argv) | |||||||
| { | { | ||||||
| 	int fd; | 	int fd; | ||||||
| 	int status = EXIT_SUCCESS; | 	int status = EXIT_SUCCESS; | ||||||
| 	int flags = getopt32(argv, "c"); | 	int flags = getopt32(argv, "cf"); | ||||||
|  |  | ||||||
|  | 	flags &= 1; /* ignoring -f (BSD compat thingy) */ | ||||||
| 	argv += optind; | 	argv += optind; | ||||||
|  |  | ||||||
| 	if (!*argv) { | 	if (!*argv) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user