mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-23 11:49:39 +00:00
touch: accept and ignore -f
This commit is contained in:
parent
35ff74676b
commit
c253778de9
@ -26,8 +26,9 @@ int touch_main(int argc, char **argv)
|
||||
{
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user